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.
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 void display(char* salinityStrStatus, char* temperatureStrStatus); 00025 void switchStatus(); 00026 void switchAction(); 00027 00028 private: 00029 Serial &_serial; 00030 TextLCD &_lcd; 00031 char* _serial_message; 00032 char* _lcd_message; 00033 bool _display_status; 00034 bool _display_action; 00035 }; 00036 00037 #endif
Generated on Tue Jul 12 2022 19:11:49 by
1.7.2