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.
SerialLcd/SerialLcd.h@4:4060309b9cc0, 2014-10-14 (annotated)
- Committer:
- komaida424
- Date:
- Tue Oct 14 08:15:03 2014 +0000
- Revision:
- 4:4060309b9cc0
- Parent:
- 2:59ac9df97701
- Child:
- 8:1db19b529b22
rev.2.1
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| komaida424 | 2:59ac9df97701 | 1 | #ifndef MBED_SERIALLCD_H |
| komaida424 | 2:59ac9df97701 | 2 | #define MBED_SERIALLCD_H |
| komaida424 | 2:59ac9df97701 | 3 | |
| komaida424 | 2:59ac9df97701 | 4 | #include "mbed.h" |
| komaida424 | 2:59ac9df97701 | 5 | #include "stdarg.h" |
| komaida424 | 2:59ac9df97701 | 6 | |
| komaida424 | 2:59ac9df97701 | 7 | class SerialLcd : public Stream |
| komaida424 | 2:59ac9df97701 | 8 | { |
| komaida424 | 2:59ac9df97701 | 9 | public: |
| komaida424 | 4:4060309b9cc0 | 10 | SerialLcd(PinName,PinName=NC); |
| komaida424 | 2:59ac9df97701 | 11 | |
| komaida424 | 2:59ac9df97701 | 12 | void cls(); |
| komaida424 | 2:59ac9df97701 | 13 | void locate(int,int); |
| komaida424 | 2:59ac9df97701 | 14 | private: |
| komaida424 | 2:59ac9df97701 | 15 | virtual int _putc(int value); |
| komaida424 | 2:59ac9df97701 | 16 | virtual int _getc(); |
| komaida424 | 2:59ac9df97701 | 17 | Serial _lcd; |
| komaida424 | 2:59ac9df97701 | 18 | int LCD_addr; |
| komaida424 | 2:59ac9df97701 | 19 | char LCD_cmd; |
| komaida424 | 2:59ac9df97701 | 20 | char LCD_data; |
| komaida424 | 2:59ac9df97701 | 21 | int LCD_contrast; |
| komaida424 | 2:59ac9df97701 | 22 | }; |
| komaida424 | 2:59ac9df97701 | 23 | #endif |