|
14 | 14 | Backlight levels from original datasheet are wrong. Setting of 22 is 76%. See google doc
|
15 | 15 |
|
16 | 16 | Todo:
|
17 |
| - -Add software PWM to control blue backlight |
18 |
| - Add ability to add custom characters |
19 |
| - -Check for size jumper |
20 | 17 | Check how splash screen works on 16 vs 20 width displays
|
21 |
| - -Display message when resetting baud rate |
22 |
| - -Display message when changing baud rate |
23 |
| - -Add additional baud rates |
24 |
| - -Document support for 1 line LCDs |
25 |
| - -Add support for custom I2C addresses. This might be a third tier command in order to maintain backwards compatibility |
26 |
| - -Can we shut down/sleep while we wait for incoming things? (not really) |
27 |
| - -Add watchdog so that we never freeze/fail |
28 |
| - -Create and document support for re_init command: 124 then 8. Does SerLCD v2 have a clear or reset everything command? It should. Document it. |
29 |
| - -Emergency reset to 9600bps |
30 |
| - -Add PWM software support for blue backlight control on pin 8 |
31 |
| - Test blue backlight control |
32 |
| - Test WDT fail |
33 |
| - -Test low level scrolling and cursor commands |
34 |
| - -Test cursor move left/right, on edges |
35 |
| - -Test emergency reset |
36 |
| - -Current measurements |
37 |
| - -Create docs for LCD manufacturer |
38 |
| - -Create SPI examples |
39 | 18 | Establish and cut down on boot time
|
40 | 19 |
|
41 | 20 | Tests:
|
42 | 21 | -Change LCD width to 20, then back to 16 (124/3, then 124/4) then send 18 characters and check for wrap
|
43 | 22 | -Enable/Disable splash screen, send 124 then 9 to toggle, then power cycle
|
44 | 23 | -Change baud rate: 124/12 to go to 4800bps, power cycle, send characters at 4800
|
45 |
| -
|
46 | 24 | */
|
47 | 25 |
|
48 | 26 | #include <Wire.h> //For I2C functions
|
|
54 | 32 | #include <avr/sleep.h> //Needed for sleep_mode
|
55 | 33 | #include <avr/power.h> //Needed for powering down perihperals such as the ADC/TWI and Timers
|
56 | 34 |
|
57 |
| -#include <SoftPWM.h> //Software PWM for Blue backlight: From https://code.google.com/p/rogue-code/wiki/SoftPWMLibraryDocumentation |
| 35 | +#include <SoftPWM.h> //Software PWM for Blue backlight: From https://github.com/bhagman/SoftPWM |
58 | 36 | //SoftPWM uses Timer 2
|
59 | 37 |
|
60 | 38 | LiquidCrystalFast SerLCD(LCD_RS, LCD_RW, LCD_EN, LCD_D4, LCD_D5, LCD_D6, LCD_D7);
|
|
0 commit comments