FreeCalypso > hg > fc-tourmaline
diff src/cs/drivers/drv_app/r2d/lcds/luna/r2d_task_i_bw.c @ 45:c905daaff834
implemented 96x64 BW framebuffer config, compiles
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 17 Oct 2020 21:30:59 +0000 |
parents | 4e78acac3d88 |
children | 4221c724c664 |
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/r2d/lcds/luna/r2d_task_i_bw.c Sat Oct 17 19:45:18 2020 +0000 +++ b/src/cs/drivers/drv_app/r2d/lcds/luna/r2d_task_i_bw.c Sat Oct 17 21:30:59 2020 +0000 @@ -1,4 +1,5 @@ -#include "r2d/lcds/luna/r2d_luna_lcd.h" +#include "r2d/lcds/luna/r2d_luna_lcd.h" +#include "r2d/lcds/luna/colormap.h" void r2d_lcd_power_on(void) { @@ -41,9 +42,9 @@ for (k=0;k<32;k++) { if (v&1) - LCD_DR = 0x0000; + LCD_DR = LCD16_COLOR_BLACK; else - LCD_DR = 0xFFFF; + LCD_DR = LCD16_COLOR_WHITE; v=v>>1; } } @@ -51,9 +52,9 @@ for (k=0;k<16;k++) { if (v&1) - LCD_DR = 0x0000; + LCD_DR = LCD16_COLOR_BLACK; else - LCD_DR = 0xFFFF; + LCD_DR = LCD16_COLOR_WHITE; v=v>>1; } }