https://github.com/narukara/ssd1306
Simple SSD1306 driver using I2C interface
https://github.com/narukara/ssd1306
c ssd1306
Last synced: about 1 month ago
JSON representation
Simple SSD1306 driver using I2C interface
- Host: GitHub
- URL: https://github.com/narukara/ssd1306
- Owner: Narukara
- Created: 2022-07-18T18:06:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-28T10:11:12.000Z (over 2 years ago)
- Last Synced: 2025-03-04T20:36:22.073Z (over 1 year ago)
- Topics: c, ssd1306
- Language: C
- Homepage:
- Size: 968 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Simple SSD1306 driver
Supported Features:
- I2C interface
- draw patterns
- print characters
- turn on and off the screen
### Example
```c
#include
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();
```

### 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