Mario Simaremare
/
g3_waterplay
Salinity and temperature sensors are implemented in classes.
Printer.h
- Committer:
- mariosimaremare
- Date:
- 2016-06-16
- Revision:
- 3:7c648d1d8802
- Child:
- 5:4cbe44452889
File content as of revision 3:7c648d1d8802:
/* * G3: WATERPLAY */ #ifndef PRINTER_H #define PRINTER_H #include "mbed.h" #include "TextLCD.h" class Printer { public: Printer( mbed::Serial &serial, TextLCD &lcd ); void toSerial(char* message); void toLCD(char* message); void toBoth(char* message); void display(); void display(double salinity, char* salinityStatus, double temperature, char* temperatureStatus); private: Serial &_serial; TextLCD &_lcd; char* _serial_message; char* _lcd_message; }; #endif