Set of routines to access 16*32character LCD display on WattBob I board.
Dependents: Assignment_2_herpe Final_V1 ass2 ass2 ... more
Diff: WattBob_TextLCD.h
- Revision:
- 3:9c142edbfae8
- Parent:
- 2:1cba2dd23d65
- Child:
- 4:f06e69c4c7f3
--- a/WattBob_TextLCD.h Mon Nov 29 14:41:23 2010 +0000 +++ b/WattBob_TextLCD.h Mon Nov 29 14:51:07 2010 +0000 @@ -23,9 +23,11 @@ * MCP23017 *par_port; * WattBob_TextLCD *lcd; * ..... - * void main() - * { - * ..... + * int main() + * par_port = new MCP23017(p9, p10, 0x40); + * par_port->config(0x0F00, 0x0F00, 0x0F00); // configure MCP23017 chip on WattBob + * lcd = new WattBob_TextLCD(par_port); + * * par_port->write_bit(1,BL_BIT); // turn LCD backlight ON * lcd->cls(); lcd->locate(0,0); * lcd->printf("%s", message);