1.1 --- a/pcf8833.c Sun Nov 24 19:01:08 2013 +0000
1.2 +++ b/pcf8833.c Sun Nov 24 19:28:06 2013 +0000
1.3 @@ -38,6 +38,9 @@
1.4 OUT(LCD_CLK);
1.5 OUT(LCD_SEND);
1.6 OUT(LCD_BACKLIGHT);
1.7 +
1.8 + CLR(LCD_RESET);
1.9 + CLR(LCD_BACKLIGHT);
1.10 }
1.11
1.12 void spi_begin()
1.13 @@ -101,7 +104,7 @@
1.14 #endif
1.15 }
1.16
1.17 -void LCD_init(void)
1.18 +void LCD_init()
1.19 {
1.20 /* Perform a hardware reset on the LCD. */
1.21 /* CS=1, CLK=0, D/C=0 apparently superfluous */
1.22 @@ -141,6 +144,13 @@
1.23 SET(LCD_BACKLIGHT);
1.24 }
1.25
1.26 +void LCD_off()
1.27 +{
1.28 + /* Switch the backlight off. */
1.29 +
1.30 + CLR(LCD_BACKLIGHT);
1.31 +}
1.32 +
1.33 void LCD_window(uint8_t xmin, uint8_t ymin, uint8_t xmax, uint8_t ymax)
1.34 {
1.35 LCD_send(LCD_COMMAND, LCD_CASET);
1.36 @@ -224,7 +234,7 @@
1.37 LCD_send(LCD_COMMAND, LCD_NOP);
1.38 }
1.39
1.40 -void LCD_normal(void)
1.41 +void LCD_normal()
1.42 {
1.43 LCD_send(LCD_COMMAND, LCD_NORON);
1.44 }