Kevin Rhyne / Whiffy

Dependencies:   4DGL-uLCD-SE mbed

src/LCDControl.cpp

Committer:
kevinrhyne
Date:
2015-10-19
Revision:
12:ef988c7fe8a4
Parent:
11:419e5d18d42b
Child:
17:4d0e180cde20

File content as of revision 12:ef988c7fe8a4:

#include "LCDControl.h"

LCDControl::LCDControl() : uLCD(p9,p10,p8){

    //uLCD = new uLCD_4DGL(p9,p10,p8); // serial tx, serial rx, reset pin;
    

    
}

void LCDControl::update(int strength, bool mode) { //do update stuff on LCD
    
        printStrength(strength);
}
    
void LCDControl::printStrength(int strength) {

    uLCD.cls();
    uLCD.printf("LCD strength: %d", strength);

}