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.
Dependencies: 4DGL-uLCD-SE mbed
Diff: LCDControl.cpp
- Revision:
- 4:15165d60fb85
- Parent:
- 2:03181ee070d3
diff -r 03181ee070d3 -r 15165d60fb85 LCDControl.cpp --- a/LCDControl.cpp Fri Oct 16 19:08:05 2015 +0000 +++ b/LCDControl.cpp Fri Oct 16 19:32:22 2015 +0000 @@ -1,18 +1,25 @@ //import LCD stuff +#include "mbed.h" +#include "uLCD_4DGL.h" +uLCD_4DGL uLCD(p9,p10,p8); // serial tx, serial rx, reset pin; class LCDControl{ - int strength; + bool mode; + public: + void update(int, bool); + void printStrength(int); + }; - void update(int strength, bool mode) { //do update stuff on LCD - + void LCDControl::update(int x, bool y) { //do update stuff on LCD + strength = x; + mode = y; printStrength(strength); } - void printStrength(strength) { - + void LCDControl::printStrength(int x) { + uLCD.cls(); + uLCD.printf("Signal Strenght: %d", x); } - - -} \ No newline at end of file + \ No newline at end of file