Microchip® Advanced Software Framework

ssd1306.c File Reference

SSD1306 display controller driver.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include "ssd1306.h"
#include "font.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_text (const char *string)
 Display text on OLED screen. More...
 

static void ssd1306_interface_init ( void  )
static

Initialize the hardware interface.

Depending on what interface used for interfacing the OLED controller this function will initialize the necessary hardware.

References usart_spi_device::id, spi_device::id, spi_enable(), spi_master_init(), spi_master_setup_device(), SPI_MODE_0, usart_spi_init(), and usart_spi_setup_device().

Referenced by ssd1306_init().