Library for Nuelectronics Nokia 3310/5110 LCD Display and joystick.
Fork of N3310LCD by
Library for Nuelectronics Nokia 3310/5110 LCD Display and joystick.
Diff: N3310LCD.cpp
- Revision:
- 8:0380b34047ad
- Parent:
- 6:46bcc4e584c4
--- a/N3310LCD.cpp Tue Jul 30 07:43:07 2013 +0000 +++ b/N3310LCD.cpp Thu Aug 01 09:14:23 2013 +0000 @@ -25,6 +25,9 @@ #include "N3310LCD.h" #include "N3310Fonts.h" +#include "variables.h" + +int contrast = 0xB5; static unsigned char lcd_buffer[LCDROWMAX][LCDCOLMAX]; // current cursor postition @@ -55,7 +58,7 @@ rstWire = 1; writeCommand(0x21); // LCD Extended Commands - writeCommand(0xC0); // Set LCD Vop (Contrast) + writeCommand(contrast); // Set LCD Vop (Contrast) writeCommand(0x06); // Set temp coefficient writeCommand(0x13); // LCD bias mode1:48 writeCommand(0x20); // LCD Standard Commands, Horizontal addressing mode