31 #define CMD_DELAY 0xFF 45 for( uint8_t i=0; i<configSize; i++)
47 uint8_t data = pgm_read_byte(&config[i]);
57 for( uint8_t i=0; i<configSize; i++)
59 uint8_t data = pgm_read_byte(&config[i]);
62 data = pgm_read_byte(&config[++i]);
81 for( uint8_t i=0; i<configSize; i++)
83 uint8_t data = pgm_read_byte(&config[i]);
86 if ( command == CMD_DELAY )
89 delay( data == 0xFF ? 500: data );
141 pinMode(rstPin, OUTPUT);
142 digitalWrite(rstPin, HIGH);
146 digitalWrite(rstPin, LOW);
148 digitalWrite(rstPin, HIGH);
void ssd1306_configureSpiDisplay2(const uint8_t *config, uint8_t configSize)
Sends configuration being passed to lcd display spi controller.
void ssd1306_setMode(lcd_mode_t mode)
Sets library display mode for direct draw functions.
void ssd1306_configureSpiDisplay(const uint8_t *config, uint8_t configSize)
Sends configuration being passed to lcd display spi controller.
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 ssd1306_dataStart(void)
void ssd1306_spiDataMode(uint8_t mode)
void ssd1306_resetController(int8_t rstPin, uint8_t delayMs)
Does hardware reset for oled controller.
void(* send_pixels1)(uint8_t data)
ssd1306_lcd_t ssd1306_lcd
ssd1306_interface_t ssd1306_intf
void ssd1306_commandStart(void)
void ssd1306_sendData(uint8_t data)
void(* set_mode)(lcd_mode_t mode)
Sets library display mode for direct draw functions.