/* writes the complete internal framebuffer to the LCD */
void mw_lcd_update_screen(void)
{
-#ifndef LCD_DMA
+//#ifndef LCD_DMA
unsigned int i,j;
-#endif
+//#endif
// debug_uart_tx("uscr1\n");
+ // invert the buffer
+ if (0) {
+ for (i=0; i<96; i++) {
+ for ( j = 0; j < 12; j++ ) {
+ lcd_buf[i].Data[j] = ~lcd_buf[i].Data[j];
+ }
+ }
+ }
+
LCD_CS_ASSERT();
/* send WRITE command */
mw_lcd_static_mode();
}
-void mw_lcd_draw_pixel(unsigned char x, unsigned char y, unsigned char color)
+void mw_lcd_draw_pixel(const uint8_t x, const uint8_t y, const uint8_t color)
{
switch (color) {
case 1:
#define LCD_WHITE 0
#endif
#define LCD_XOR 2
-void mw_lcd_draw_pixel(unsigned char x, unsigned char y, unsigned char color);
+void mw_lcd_draw_pixel(const uint8_t x, const uint8_t y, const uint8_t color);
#endif