Registry / other / ssd1306

ssd1306

JSON →
library0.10.0rscratesunverified

I2C/SPI driver for the SSD1306 OLED display controller.

# Cargo.toml [dependencies] ssd1306 = "0.10.0"
INSTALL
IMPORT
SIG · SSD1306
S
ssd1306
otherrustv0.10.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Ssd1306
✓ use ssd1306::Ssd1306;

Initializes an SSD1306 OLED display over I2C and writes text.

use ssd1306::Ssd1306; use ssd1306::interface::I2cInterface; fn main() { let display = Ssd1306::new(I2cInterface::new(i2c, addr)); display.init().unwrap(); display.write_str("Hello").unwrap(); }
Debug
Known issues
gotchaRequires correct I2C/SPI peripheral and address configuration.
fix
Check your hardware wiring and use the appropriate interface (I2cInterface or SpiInterface).
affects: >=0.10.0
Upgrade
Version history
0.10.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
ssd1306 — cargo add ssd1306 · libregistry