7#define oled_white 0xffff
8#define oled_black 0x0000
10#define oled_green 0xe007
11#define oled_blue 0x1f00
12#define oled_cyan (oled_green | oled_blue)
13#define oled_yellow (oled_green | oled_red)
14#define oled_magenta (oled_red | oled_blue)
69 pin_reset_.
Write(
false);
71 pin_reset_.
Write(
true);
102template <
size_t w
idth,
size_t height,
typename Transport>
190 size_t Width()
const {
return width; };
195 if((x >= width) || (y >=
height))
210 for(
size_t i = 0;
i <
sizeof(
buffer_) / 2;
i++)
General Purpose I/O control.
Definition gpio.h:22
void Write(bool state)
Changes the state of the GPIO hardware when configured as an OUTPUT.
void Init()
Initialize the GPIO using the internal Config struct.
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_ssd1351.h:22
void SendCommand(uint8_t cmd)
Definition oled_ssd1351.h:74
void Init(const Config &config)
Definition oled_ssd1351.h:59
void SendData(uint8_t data)
Definition oled_ssd1351.h:86
void SendData(uint8_t *buff, size_t size)
Definition oled_ssd1351.h:80
Definition oled_ssd1351.h:104
void SetColorFG(uint8_t red, uint8_t green, uint8_t blue)
Definition oled_ssd1351.h:233
uint16_t bg_color_
Definition oled_ssd1351.h:257
size_t Height() const
Definition oled_ssd1351.h:191
size_t Width() const
Definition oled_ssd1351.h:190
void SetColorBG(uint8_t red, uint8_t green, uint8_t blue)
Definition oled_ssd1351.h:243
void DrawPixel(uint_fast8_t x, uint_fast8_t y, bool on)
Definition oled_ssd1351.h:193
void Init(Config config)
Definition oled_ssd1351.h:111
Transport transport_
Definition oled_ssd1351.h:254
void Update()
Definition oled_ssd1351.h:219
void Fill(bool on)
Definition oled_ssd1351.h:208
uint16_t buffer_[width *height]
Definition oled_ssd1351.h:255
uint16_t fg_color_
Definition oled_ssd1351.h:256
Result BlockingTransmit(uint8_t *buff, size_t size, uint32_t timeout=100)
Result Init(const Config &config)
static void Delay(uint32_t delay_ms)
Hardware defines and helpers for daisy field platform.
Definition index.h:2
@ PORTX
Definition daisy_core.h:188
@ PORTB
Definition daisy_core.h:178
@ PORTG
Definition daisy_core.h:183
#define oled_black
Definition oled_ssd1351.h:8
#define oled_white
Definition oled_ssd1351.h:7
representation of hardware port/pin combination
Definition daisy_core.h:193
Definition oled_ssd1351.h:25
Pin dc
Definition oled_ssd1351.h:34
Config()
Definition oled_ssd1351.h:26
struct daisy::SSD13514WireSpiTransport::Config::@12 pin_config
void Defaults()
Definition oled_ssd1351.h:37
SpiHandle::Config spi_config
Definition oled_ssd1351.h:31
Pin reset
Definition oled_ssd1351.h:35
Definition oled_ssd1351.h:107
Transport::Config transport_config
Definition oled_ssd1351.h:108
ClockPolarity clock_polarity
Definition spi.h:104
Peripheral periph
Definition spi.h:100
Pin nss
Definition spi.h:88
struct daisy::SpiHandle::Config::@18 pin_config
Mode mode
Definition spi.h:101
ClockPhase clock_phase
Definition spi.h:105
BaudPrescaler baud_prescaler
Definition spi.h:107
Direction direction
Definition spi.h:102
unsigned long datasize
Definition spi.h:103