1.1 --- a/pcf8833.h Sun Nov 24 19:01:08 2013 +0000
1.2 +++ b/pcf8833.h Sun Nov 24 19:28:06 2013 +0000
1.3 @@ -22,21 +22,21 @@
1.4 *
1.5 * Sniffer UBB Shifters Shield
1.6 * ------- ---- ---------- ------
1.7 - * DAT2 DAT2
1.8 + * DAT2 DAT2 A1 (#2) B1 8 (BACKLIGHT)
1.9 * CD DAT3 A2 (#1) B2 10 (SS/CS)
1.10 * CMD CMD A1 (#1) B1 9 (RESET)
1.11 * VCC VDD LV HV VIN
1.12 * CLK CLK A4 (#1) B4 13 (SCLK/CLK)
1.13 * GND GND GND GND GND
1.14 * DAT0 DAT0 A3 (#1) B3 11 (MOSI/SEND)
1.15 - * DAT1 DAT1 A1 (#2) B1 8 (BACKLIGHT)
1.16 + * DAT1 DAT1
1.17 */
1.18
1.19 +#define LCD_BACKLIGHT UBB_DAT2
1.20 #define LCD_CS UBB_DAT3
1.21 #define LCD_RESET UBB_CMD
1.22 #define LCD_CLK UBB_CLK
1.23 #define LCD_SEND UBB_DAT0
1.24 -#define LCD_BACKLIGHT UBB_DAT1
1.25
1.26 typedef enum {
1.27 LCD_COMMAND = 0,
1.28 @@ -84,13 +84,14 @@
1.29 void LCD_send(lcd_sendmode mode, uint8_t data);
1.30 void LCD_send_more_data(uint8_t data);
1.31 void LCD_send_raw(uint8_t data);
1.32 -void LCD_init(void);
1.33 +void LCD_init();
1.34 +void LCD_off();
1.35 void LCD_window(uint8_t xmin, uint8_t ymin, uint8_t xmax, uint8_t ymax);
1.36 void LCD_blit_int(uint16_t colour);
1.37 void LCD_area(uint8_t xmin, uint8_t ymin, uint8_t xmax, uint8_t ymax, uint16_t colour);
1.38 void LCD_image(int x, int y, const uint16_t image[], uint8_t width, uint8_t height);
1.39 void LCD_image_region(int x, int y, const uint16_t image[], uint8_t width, uint8_t height, uint8_t from_x, uint8_t span_x, uint8_t from_y, uint8_t span_y);
1.40 -void LCD_normal(void);
1.41 +void LCD_normal();
1.42 void LCD_scroll_area(uint8_t top_fixed, uint8_t scrolling, uint8_t bottom_fixed);
1.43 void LCD_scroll_start(uint8_t address);
1.44