Atmel Software Framework

ssd1306.c File Reference

SSD1306 display controller driver.

Copyright (c) 2014-2015 Atmel Corporation. All rights reserved.

#include "ssd1306.h"
#include "font.h"


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  )

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().