/AVR-OLED-SSD1306-IIC-DRIVER

C library to drive the SSD1306 OLED display AVR

Primary LanguageC

AVR-OLED-SSD1306-IIC-DRIVER

This library contains code to drive the SSD1306 OLED displays using AVR ATmega series of microcontrollers. The default font size is set to 5. This library makes use of the IIC library available on this github page.

Using the library is really simple, here is initialization code for the OLED:

int main(void) {
	  
    OLED_Init();  //initialize the OLED
    OLED_Clear(); //clear the display (for good measure)
    
    while (1) {
        
        OLED_SetCursor(0, 0);        //set the cursor position to (0, 0)
        OLED_Printf("Hello World!"); //Print out some text

    }
    
    return 0; // never reached
}

The I2C code used is available here: https://github.com/Preston-Sundar/AtmegaXX-I2C-Library