36 static const uint8_t rs = 4, e = 11, db4 = 14, db5 = 17, db6 = 13, db7 = IO_D5;
45 virtual void send(uint8_t data,
bool rsValue,
bool only4bits)
63 if (!only4bits) { sendNibble(data >> 4); }
64 sendNibble(data & 0x0F);
69 void sendNibble(uint8_t data)
Writes data to the LCD on the Romi 32U4.
static void setOutput(bool value) __attribute__((always_inline))
Sets the pin as an output.
General class for handling the HD44780 protocol.
static void setOutputHigh() __attribute__((always_inline))
Configures the pin to be an output driving high.
virtual void send(uint8_t data, bool rsValue, bool only4bits)
static void setOutputLow() __attribute__((always_inline))
Configures the pin to be an output driving low.