syouichi imamori / Mbed OS MulticopterQuadX

Dependencies:   IAP

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SerialLcd.h Source File

SerialLcd.h

00001 #ifndef MBED_SERIALLCD_H
00002 #define MBED_SERIALLCD_H
00003 
00004 #include "mbed.h"
00005 #include <Stream.h>
00006 //#include "stdarg.h"
00007 
00008 class SerialLcd : public Stream
00009 {
00010 public:
00011     SerialLcd(PinName,PinName=NC);
00012     
00013     void cls();
00014     void locate(int,int);
00015     int write(const char*);
00016 private:
00017     virtual int _putc(int value);
00018     virtual int _getc();
00019     BufferedSerial _lcd;
00020     int LCD_addr;
00021     char LCD_cmd;
00022     char LCD_data;
00023     int LCD_contrast;
00024 };
00025 #endif