SSD1306 display controller driver.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
void | ssd1306_init (void) |
Initialize the OLED controller. More... | |
static void | ssd1306_interface_init (void) |
Initialize the hardware interface. More... | |
void | ssd1306_write_text (const char *string) |
Display text on OLED screen. More... | |
|
static |
Initialize the hardware interface.
Depending on what interface used for interfacing the OLED controller this function will initialize the necessary hardware.
References spi_device::id, spi_enable(), spi_master_init(), spi_master_setup_device(), SPI_MODE_0, SSD1306_CLOCK_SPEED, SSD1306_CS_PIN, and SSD1306_SPI.
Referenced by ssd1306_init().