GraphicLCD
GraphicLCD.h@0:bd08fcad3cf4, 2019-06-04 (annotated)
- Committer:
- williequesada
- Date:
- Tue Jun 04 16:48:20 2019 +0000
- Revision:
- 0:bd08fcad3cf4
pablo
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
williequesada | 0:bd08fcad3cf4 | 1 | #ifndef MBED_GLCD_H |
williequesada | 0:bd08fcad3cf4 | 2 | #define MBED_GLCD_H |
williequesada | 0:bd08fcad3cf4 | 3 | |
williequesada | 0:bd08fcad3cf4 | 4 | #include "mbed.h" |
williequesada | 0:bd08fcad3cf4 | 5 | |
williequesada | 0:bd08fcad3cf4 | 6 | class GLCD { |
williequesada | 0:bd08fcad3cf4 | 7 | public: |
williequesada | 0:bd08fcad3cf4 | 8 | GLCD(PinName D1,PinName D2,PinName D3,PinName D4,PinName D5,PinName D6,PinName D7,PinName D8,PinName CD,PinName RESET,PinName CE,PinName WR,PinName RD,PinName Power); |
williequesada | 0:bd08fcad3cf4 | 9 | |
williequesada | 0:bd08fcad3cf4 | 10 | void WriteData(uint8_t Data); |
williequesada | 0:bd08fcad3cf4 | 11 | void WriteCommand(uint8_t Command); |
williequesada | 0:bd08fcad3cf4 | 12 | void Limits(); |
williequesada | 0:bd08fcad3cf4 | 13 | void Fill(); |
williequesada | 0:bd08fcad3cf4 | 14 | void Clean(); |
williequesada | 0:bd08fcad3cf4 | 15 | void Horizontal(); |
williequesada | 0:bd08fcad3cf4 | 16 | void Cross(); |
williequesada | 0:bd08fcad3cf4 | 17 | void Vertical(); |
williequesada | 0:bd08fcad3cf4 | 18 | void Show(); |
williequesada | 0:bd08fcad3cf4 | 19 | void Characters(); |
williequesada | 0:bd08fcad3cf4 | 20 | void Init(); |
williequesada | 0:bd08fcad3cf4 | 21 | void On(); |
williequesada | 0:bd08fcad3cf4 | 22 | void Off(); |
williequesada | 0:bd08fcad3cf4 | 23 | void Pixel(int x, int y); |
williequesada | 0:bd08fcad3cf4 | 24 | void Rectangle(int X0, int Y0, int X1, int Y1); |
williequesada | 0:bd08fcad3cf4 | 25 | int PutChar(int X,int Y,int Letter); |
williequesada | 0:bd08fcad3cf4 | 26 | void PutString(int X, int Y, char String[]); |
williequesada | 0:bd08fcad3cf4 | 27 | |
williequesada | 0:bd08fcad3cf4 | 28 | private: |
williequesada | 0:bd08fcad3cf4 | 29 | DigitalOut _D1; |
williequesada | 0:bd08fcad3cf4 | 30 | DigitalOut _D2; |
williequesada | 0:bd08fcad3cf4 | 31 | DigitalOut _D3; |
williequesada | 0:bd08fcad3cf4 | 32 | DigitalOut _D4; |
williequesada | 0:bd08fcad3cf4 | 33 | DigitalOut _D5; |
williequesada | 0:bd08fcad3cf4 | 34 | DigitalOut _D6; |
williequesada | 0:bd08fcad3cf4 | 35 | DigitalOut _D7; |
williequesada | 0:bd08fcad3cf4 | 36 | DigitalOut _D8; |
williequesada | 0:bd08fcad3cf4 | 37 | DigitalOut _CD; |
williequesada | 0:bd08fcad3cf4 | 38 | DigitalOut _RESET; |
williequesada | 0:bd08fcad3cf4 | 39 | DigitalOut _CE; |
williequesada | 0:bd08fcad3cf4 | 40 | DigitalOut _WR; |
williequesada | 0:bd08fcad3cf4 | 41 | DigitalOut _RD; |
williequesada | 0:bd08fcad3cf4 | 42 | DigitalOut _Power; |
williequesada | 0:bd08fcad3cf4 | 43 | }; |
williequesada | 0:bd08fcad3cf4 | 44 | |
williequesada | 0:bd08fcad3cf4 | 45 | #endif |
williequesada | 0:bd08fcad3cf4 | 46 | |
williequesada | 0:bd08fcad3cf4 | 47 |