Kevin Rhyne / Whiffy

Dependencies:   4DGL-uLCD-SE mbed

src/LCDControl.cpp

Committer:
kevinrhyne
Date:
2015-10-21
Revision:
20:d880506cfdff
Parent:
19:b2adc97f4700

File content as of revision 20:d880506cfdff:

#include "LCDControl.h"

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

    uLCD.printf("LCD initialized\n");
    

    
}

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

    wait(2);
    //uLCD.cls();
    uLCD.printf("Strength: %.2f\n", strength);

}

void LCDControl::printString(string printer) {
    wait(1);
    uLCD.printf(printer.c_str());
    wait(1);
    }