6 namespace ssd1306_spi {
8 static const char *
const TAG =
"ssd1306_spi";
11 ESP_LOGCONFIG(TAG,
"Setting up SPI SSD1306...");
19 LOG_DISPLAY(
"",
"SPI SSD1306",
this);
20 ESP_LOGCONFIG(TAG,
" Model: %s", this->
model_str_());
21 LOG_PIN(
" CS Pin: ", this->
cs_);
22 LOG_PIN(
" DC Pin: ", this->
dc_pin_);
24 ESP_LOGCONFIG(TAG,
" External VCC: %s", YESNO(this->
external_vcc_));
25 ESP_LOGCONFIG(TAG,
" Flip X: %s", YESNO(this->
flip_x_));
26 ESP_LOGCONFIG(TAG,
" Flip Y: %s", YESNO(this->
flip_y_));
27 ESP_LOGCONFIG(TAG,
" Offset X: %d", this->
offset_x_);
28 ESP_LOGCONFIG(TAG,
" Offset Y: %d", this->
offset_y_);
29 ESP_LOGCONFIG(TAG,
" Inverted Color: %s", YESNO(this->
invert_));
30 LOG_UPDATE_INTERVAL(
this);
int get_height_internal() override
virtual void digital_write(bool value)=0
void spi_setup() override
void dump_config() override
void write_byte(uint8_t data)
size_t get_buffer_length_()
void command(uint8_t value) override
const char * model_str_()
int get_width_internal() override
Application App
Global storage of Application pointer - only one Application can exist.
void write_array(const uint8_t *data, size_t length)
Implementation of SPI Controller mode.
void write_display_data() override