34 extern uint16_t ssd1306_color;
36 static const PROGMEM uint8_t s_oled_WxH_initData[] =
52 static uint8_t s_column;
53 static uint8_t s_page;
56 static void template_setBlock_compat(lcduint_t x, lcduint_t y, lcduint_t w)
72 static void template_nextPage_compat(
void)
75 template_setBlock_compat(s_column,s_page+1,0);
78 static void template_sendPixels(uint8_t data)
80 for (uint8_t i=8; i>0; i--)
94 static void template_sendPixelsBuffer(
const uint8_t *buffer, uint16_t len)
98 template_sendPixels(*buffer);
106 static void template_setBlock(lcduint_t x, lcduint_t y, lcduint_t w)
120 static void template_nextPage(
void)
void template_setMode(lcd_mode_t mode)
Sets GDRAM autoincrement mode.
void(* send)(uint8_t data)
void ssd1306_configureI2cDisplay(const uint8_t *config, uint8_t configSize)
Sends configuration being passed to lcd display i2c/spi controller.
void template_WxH_init(void)
Inits WxH TEMPLATE OLED display (based on TEMPLATE controller).
void(* set_block)(lcduint_t x, lcduint_t y, lcduint_t w)
Sets block in RAM of lcd display controller to write data to.
void(* send_pixels8)(uint8_t data)
Sends RGB pixel encoded in 3-3-2 format to OLED driver. Sends RGB pixel encoded in 3-3-2 format to OL...
void ssd1306_spiDataMode(uint8_t mode)
void(* send_pixels_buffer1)(const uint8_t *buffer, uint16_t len)
void ssd1306_resetController(int8_t rstPin, uint8_t delayMs)
Does hardware reset for oled controller.
void(* send_pixels1)(uint8_t data)
void ssd1306_spiInit(int8_t cesPin, int8_t dcPin)
ssd1306_lcd_t ssd1306_lcd
void template_WxH_spi_init(int8_t rstPin, int8_t cesPin, int8_t dcPin)
Inits WxH TEMPLATE OLED display over spi (based on TEMPLATE controller).
ssd1306_interface_t ssd1306_intf
void(* set_mode)(lcd_mode_t mode)
Sets library display mode for direct draw functions.