X-Git-Url: https://git.karo-electronics.de/?p=oswald.git;a=blobdiff_plain;f=metawatch%2Fmw_lcd.c;h=2082a6d5e4c3f55334aebac8533d2bff170d28af;hp=0eb75507029c1504aef2ea379e17481052ead136;hb=b855a8c32c0742bf402ab409e63aad7b3606a824;hpb=670e9311524e181307ccb2be481215648a3b31cf diff --git a/metawatch/mw_lcd.c b/metawatch/mw_lcd.c index 0eb7550..2082a6d 100644 --- a/metawatch/mw_lcd.c +++ b/metawatch/mw_lcd.c @@ -197,12 +197,21 @@ __interrupt void DMA_ISR (void) /* 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 */ @@ -267,7 +276,7 @@ void mw_lcd_update_screen(void) 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: