Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of N3310LCD by
Revision 8:0380b34047ad, committed 2013-08-01
- Comitter:
- Searle95
- Date:
- Thu Aug 01 09:14:23 2013 +0000
- Parent:
- 7:d7edfa5903e6
- Commit message:
- Modified for use in NetTester project.
Changed in this revision
N3310LCD.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r d7edfa5903e6 -r 0380b34047ad N3310LCD.cpp --- 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