SSD1327 I2C Driver
no_std
I2C Driver for SSD1327 Oled screens.
The graphics
feature implements the embedded-graphics DrawTarget
trait for the SSD1327 Oled screen.
Tested on an ESP32.
Examples
Without Graphics
Following code shows how to flash a SSD1327 screen using the ESP HAL I2C Peripheral Driver.
// Create a new peripheral object with the described wiring
// and standard I2C clock speed
let i2c = I2C new;
// Create a new SSD1327I2C object with slave address 0x3C, width 127 and height 127
let mut driver = SSD1327I2C new;
driver.init;
loop
With Graphics
Following code shows how to write Hello rust!
to a SSD1327 screen using the ESP HAL I2C Peripheral Driver.
// Create a new peripheral object with the described wiring
// and standard I2C clock speed
let i2c = I2C new;
// Create a new SSD1327I2C object with slave address 0x3C, width 127 and height 127
let mut driver = SSD1327I2C new;
driver.init;
// Create a new character style
let style = new;
// Create a text at position (10, 10) and draw it using the previously defined style
new.draw.unwrap;
loop