36 static const uint8_t PROGMEM s_lcd84x48_initData[] =
42 PCD8544_FUNCTIONSET | PCD8544_EXTENDEDINSTRUCTION,
43 PCD8544_SETVOP | 0x16,
45 PCD8544_SETBIAS | 0x04,
47 PCD8544_DISPLAYCONTROL | PCD8544_DISPLAYNORMAL
50 static uint8_t s_column;
51 static uint8_t s_page;
52 static uint8_t s_width;
54 static void pcd8544_setBlock(lcduint_t x, lcduint_t y, lcduint_t w)
67 static void pcd8544_nextPage(
void)
72 pcd8544_setBlock(s_column, s_page+1, s_width);
93 for( uint8_t i=0; i<
sizeof(s_lcd84x48_initData); i++)
void(* send)(uint8_t data)
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 ssd1306_spiDataMode(uint8_t mode)
void pcd8544_84x48_spi_init(int8_t rstPin, int8_t cesPin, int8_t dcPin)
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
ssd1306_interface_t ssd1306_intf
void pcd8544_84x48_init()
Inits 84x48 LED display (based on PCD8544 controller).
void(* send_buffer)(const uint8_t *buffer, uint16_t size)
Sends bytes to SSD1306 device.
void(* set_mode)(lcd_mode_t mode)
Sets library display mode for direct draw functions.