12-21-2018, 06:21 PM
Hi. Have you actually used it with an oled with i2c interface? Do you know which changes to make to the page file to make it work using a i2c interface?
I tried it but I could not figure out which parameters to use with i2c oled.
I think this is the part of the original page file that need to be changed:
How do you change it for a ssd1306 128x64 oled with i2c interface?
Remy
I tried it but I could not figure out which parameters to use with i2c oled.
I think this is the part of the original page file that need to be changed:
Code:
from luma.core.interface.serial import spi
from luma.core.render import canvas
from luma.oled.device import ssd1306
import RPi.GPIO as GPIO
serial = spi(port=0, device=0, gpio_DC=27, gpio_RST=24)
device = ssd1306(serial, rotate=2)
How do you change it for a ssd1306 128x64 oled with i2c interface?
Remy