nickpmulder / ssd1306big

A font for micropython on 128x64 pixel ssd1306 oled display.
24 stars 7 forks source link

change of sda scl pins #2

Open gokulvenkat opened 1 year ago

gokulvenkat commented 1 year ago

your work looks great and hatsoff to you and your team .i need to assign different pin for scl and sda so can you include a line to change the pin number.thanks in advance and have a great day

hjmassey commented 10 months ago

Add this line after 'import time' line (around line 16) from machine import Pin, I2C

Change this line (around line 141)

from:

i2c = machine.I2C()

to

i2c = machine.I2C(sda=Pin(11), scl=Pin(12))

Replace 11 and 12 with your pin numbers (11 and 12 are the pins on the Arduino Nano ESP32).

stewartaubrey commented 2 weeks ago

I had to adjust the change above to this adding the bus # and freq to get it to run on an RP2040-zero: i2c = machine.I2C(0, scl=Pin(5), sda=Pin(4), freq=400000)

Love the large font and work you did. The baseline font is almost unreadable.