Skip to content

Narukara/SSD1306

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Simple SSD1306 driver

Supported Features:

  • I2C interface
  • draw patterns
  • print characters
  • turn on and off the screen

Example

#include <ssd1306.h>

ssd1306_init();
ssd1306_print("0123456789 !@#$^", Line1);
for (uint16_t x = 0; x < 128; x++) {
    ssd1306_draw_pixel(x, 24);
}
ssd1306_print("ABCDEFGHIJKLMNOP", Line3);
ssd1306_print("QRSTUVWXYZ", Line4);
ssd1306_show();

image-20220719023923524

How to use

  1. Import all source code into your project
  2. Implement the function ssd1306_hal_i2c_write in ssd1306_hal.c
  3. Import the header file ssd1306.h then use the functions provided there

About

Simple SSD1306 driver using I2C interface

Topics

Resources

Stars

Watchers

Forks

Languages