1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-20 21:01:25 +03:00

Changing Print class to use regular virtual write() function (instead of my hack

ed together version).
This commit is contained in:
David A. Mellis
2008-05-07 18:24:49 +00:00
parent ac06b319b0
commit 8f75f0299d
6 changed files with 16 additions and 32 deletions

View File

@ -16,9 +16,11 @@ public:
void shiftDisplayLeft();
void shiftDisplayRight();
*/
void write(int, int = 1);
void command(int);
virtual void write(uint8_t);
void command(uint8_t);
private:
void send(uint8_t, uint8_t);
uint8_t _four_bit_mode;
uint8_t _rs_pin; // LOW: command. HIGH: character.
uint8_t _rw_pin; // LOW: write to LCD. HIGH: read from LCD.
@ -26,6 +28,4 @@ private:
uint8_t _data_pins[8];
};
void baseWrite(uint8_t, void *);
#endif