Skip to content

prestonsn/AVR-OLED-SSD1306-IIC-DRIVER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

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

About

C library to drive the SSD1306 OLED display AVR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages