ok
Fork of g3_waterplay by
Embed:
(wiki syntax)
Show/hide line numbers
Printer.h
00001 /* 00002 * G3: WATERPLAY 00003 */ 00004 00005 #ifndef PRINTER_H 00006 #define PRINTER_H 00007 00008 #include "mbed.h" 00009 #include "TextLCD.h" 00010 00011 class Printer 00012 { 00013 public: 00014 Printer( 00015 mbed::Serial &serial, 00016 TextLCD &lcd 00017 ); 00018 void toSerial(char* message); 00019 void toLCD(char* message); 00020 void toBoth(char* message); 00021 void toBothln(char* message); 00022 void display(); 00023 void display(double salinity, char* salinityStatus, double temperature, char* temperatureStatus); 00024 00025 private: 00026 Serial &_serial; 00027 TextLCD &_lcd; 00028 char* _serial_message; 00029 char* _lcd_message; 00030 }; 00031 00032 #endif
Generated on Tue Jul 12 2022 21:07:58 by
1.7.2
