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.
Dependencies: AdaFruit_RGBLCDShield MCP23017 mbed RTclock
Fork of MCP_test by
lcd2004.h
00001 #ifndef __LCD2004_H__ 00002 #define __LCD2004_H__ 00003 00004 #include "lcd.h" 00005 00006 class LCD2004 00007 : public LCD 00008 { 00009 public: 00010 LCD2004(I2C & in_cI2C); 00011 virtual int _putc(int c); 00012 00013 virtual uint8_t columns(); 00014 virtual void clear(); 00015 virtual void createChar(uint8_t location, uint8_t charmap[]); 00016 virtual void home(); 00017 virtual uint8_t rows(); 00018 virtual void setCursor(uint8_t in_nX, uint8_t in_nY); 00019 virtual void showBlink(bool in_bShow); 00020 virtual void showCursor(bool in_bShow); 00021 virtual void showDisplay(bool in_bShow); 00022 00023 protected: 00024 uint8_t read_reg(void); 00025 uint8_t remap(uint8_t in_nValue); 00026 void setDisplayControl(uint8_t in_nReg, bool in_bEnable); 00027 void write_data(uint8_t in_nReg, uint8_t in_nValue); 00028 void write_reg(uint8_t in_nValue); 00029 00030 protected: 00031 uint8_t m_nDisplayControl; 00032 }; 00033 00034 #endif // __LCD2004_H__
Generated on Thu Jul 14 2022 00:55:23 by
1.7.2
