Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Yet another OLED Driver!
#2
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: 
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
Reply


Messages In This Thread
Yet another OLED Driver! - by superpat - 12-20-2018, 05:47 PM
RE: Yet another OLED Driver! - by remy1961 - 12-21-2018, 06:21 PM
RE: Yet another OLED Driver! - by ear5142 - 12-22-2018, 10:26 AM
RE: Yet another OLED Driver! - by remy1961 - 12-22-2018, 07:43 PM
RE: Yet another OLED Driver! - by remy1961 - 12-22-2018, 11:01 PM
RE: Yet another OLED Driver! - by superpat - 12-23-2018, 10:01 AM
RE: Yet another OLED Driver! - by DRONE7 - 01-27-2019, 07:51 PM

Forum Jump: