fork of original freetronics library
Fork of Freetronics_16x2_LCD by
freetronicsLCDShield.h
- Committer:
- KKempeneers
- Date:
- 2013-10-08
- Revision:
- 0:01f3d38f8b6d
- Child:
- 1:ddcefddda4a7
File content as of revision 0:01f3d38f8b6d:
#define LEFT 0 #define RIGHT 1 class freetronicsLCDShield : public Stream { private: // Functions void writeByte (int byte); void writeCommand (int command); void writeData (int data); void character(int line, int col, int value); // Hardware DigitalOut _rs, _e; BusOut _d; PwmOut _bl; AnalogIn _a0; public: // Constructor freetronicsLCDShield (PinName rs = PTA13, PinName e = PTD5, PinName d0 = PTA4, PinName d1 = PTA5, PinName d2 = PTC8, PinName d3 = PTC9, PinName bl = PTA12, PinName a0 = PTB0); void setCursorPosition (int line, int col); void setBackLight (bool blStatus); void setBackLight (float blIntensity); void setCursor (bool cStatus, bool blink = false); void shift (bool left); void cls (void); void home(void); float readButton(void); protected: // Stream implementation functions virtual int _putc(int value); virtual int _getc(); };