ssd1306xled 1.0.0
SSD1306/SSD1315/SSH1106 OLED driver for ATtiny85
Loading...
Searching...
No Matches
ssd1306xled.cpp File Reference

SSD1306 OLED driver implementation. More...

#include <stdlib.h>
#include <avr/io.h>
#include <avr/pgmspace.h>
#include "ssd1306xled.h"
Include dependency graph for ssd1306xled.cpp:

Variables

SSD1306Device SSD1306
 Global driver instance.
 

Detailed Description

SSD1306 OLED driver implementation.

I2C is bit-banged through the ATtiny85 USI peripheral rather than using the Wire library. This saves about 1 KB of flash. The implementation is based on TinyI2C by David Johnson-Davies.

Display data goes straight to the SSD1306 over I2C – there is no local framebuffer. This keeps RAM usage near zero but means every draw call is an I2C transaction, and the display cannot be read back (no read-modify-write).

Variable Documentation

◆ SSD1306

SSD1306Device SSD1306

Global driver instance.

Use this to call all display functions. Do not create additional instances.

SSD1306.ssd1306_string_font6x8("hello");
void ssd1306_init(void)
Initialize the display and clear the screen.
Definition ssd1306xled.cpp:241
SSD1306Device SSD1306
Global driver instance.
Definition ssd1306xled.cpp:607