SSD1306 OLED display controller driver.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
#include "ssd1306.h"
Functions | |
void | ssd1306_init (void) |
Initialize the OLED controller. More... | |
static void | ssd1306_interface_init (void) |
Initialize the hardware interface. More... | |
void | ssd1306_write_command (uint8_t command) |
Writes a command to the display controller. More... | |
void | ssd1306_write_data (uint8_t data) |
Write data to the display controller. More... | |
Variables | |
struct spi_module | ssd1306_master |
struct spi_slave_inst | ssd1306_slave |
|
static |
Initialize the hardware interface.
Depending on what interface used for interfacing the OLED controller this function will initialize the necessary hardware.
References spi_master_config::baudrate, port_config::direction, spi_config::master, spi_config::mode_specific, spi_config::mux_setting, spi_config::pinmux_pad0, spi_config::pinmux_pad1, spi_config::pinmux_pad2, spi_config::pinmux_pad3, port_get_config_defaults(), PORT_PIN_DIR_OUTPUT, port_pin_set_config(), spi_attach_slave(), spi_enable(), spi_get_config_defaults(), spi_init(), spi_slave_inst_get_config_defaults(), spi_slave_inst_config::ss_pin, ssd1306_master, and ssd1306_slave.
Referenced by ssd1306_init().