sparkfun Compatible Serial LCD
Embed:
(wiki syntax)
Show/hide line numbers
SerialLcd.h
00001 #ifndef MBED_SERIALLCD_H 00002 #define MBED_SERIALLCD_H 00003 00004 #include "mbed.h" 00005 #include "stdarg.h" 00006 00007 class SerialLcd : public Stream 00008 { 00009 public: 00010 SerialLcd(PinName); 00011 00012 void cls(); 00013 void locate(int,int); 00014 private: 00015 virtual int _putc(int value); 00016 virtual int _getc(); 00017 Serial _lcd; 00018 int LCD_addr; 00019 char LCD_cmd; 00020 char LCD_data; 00021 int LCD_contrast; 00022 }; 00023 #endif
Generated on Sun Jul 17 2022 01:45:36 by 1.7.2