12 void setup()
override;
38 void send(uint8_t value,
bool rs)
override;
45 GPIOPin *
data_pins_[8]{
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr};
46 std::function<void(GPIOLCDDisplay &)>
writer_;
void set_writer(std::function< void(GPIOLCDDisplay &)> &&writer)
void set_data_pins(GPIOPin *d0, GPIOPin *d1, GPIOPin *d2, GPIOPin *d3, GPIOPin *d4, GPIOPin *d5, GPIOPin *d6, GPIOPin *d7)
std::function< void(GPIOLCDDisplay &)> writer_
void set_enable_pin(GPIOPin *enable)
bool is_four_bit_mode() override
void set_rw_pin(GPIOPin *rw)
void write_n_bits(uint8_t value, uint8_t n) override
void call_writer() override
void send(uint8_t value, bool rs) override
Implementation of SPI Controller mode.
void set_rs_pin(GPIOPin *rs)
void dump_config() override
void set_data_pins(GPIOPin *d0, GPIOPin *d1, GPIOPin *d2, GPIOPin *d3)