2#ifndef DSY_OLED_DISPLAY_H
3#define DSY_OLED_DISPLAY_H
13template <
typename DisplayDriver>
34 void Fill(
bool on)
override { driver_.Fill(
on); }
44 driver_.DrawPixel(x, y,
on);
51 void Update()
override { driver_.Update(); }
56 void Reset() { driver_.Reset(); };
57 void SendCommand(uint8_t cmd) { driver_.SendCommand(cmd); };
58 void SendData(uint8_t* buff,
size_t size) { driver_.SendData(buff, size); };
Definition leddriver.h:33
void Init(I2CHandle i2c, const uint8_t(&addresses)[numDrivers], DmaBuffer dma_buffer_a, DmaBuffer dma_buffer_b, Pin oe_pin=Pin(PORTX, 0))
Definition leddriver.h:65
Definition oled_display.h:15
void Fill(bool on) override
Definition oled_display.h:34
void Init(Config config)
Definition oled_display.h:25
uint16_t Width() const override
Definition oled_display.h:28
OledDisplay()
Definition oled_display.h:17
virtual ~OledDisplay()
Definition oled_display.h:18
uint16_t Height() const override
Definition oled_display.h:27
void DrawPixel(uint_fast8_t x, uint_fast8_t y, bool on) override
Definition oled_display.h:42
void Update() override
Definition oled_display.h:51
Hardware defines and helpers for daisy field platform.
Definition index.h:2
Definition oled_display.h:21
DisplayDriver::Config driver_config
Definition oled_display.h:22