Thank you for your support, Sorry my Circuit Py skills are marginal at best. So your assistance is much appreciated. Looking for an additional function. I accidentally purchased the Adafruit FeatherWing OLED - 128x64 OLED Add-on For Feather (https://www.adafruit.com/product/4650) vice the usual 128x32 OLED. I know it needs a different driver (adafruit_displayio_sh1107) and I know that it has to be added in these first 10 lines. It is probably simple, but I have tried a few things but when I did get am output it wasn't what I expected. (too much experimentation) So if I want to be able to use this display what do I need to add and/or change? Removing any reverence to the SSD1306 I am sure, but what goes in its place? I substituted Import adafruit_displayio_sh1107 for line 6 import adafruit_ssd1306 but then line 10 has a fit "OLED=" obviously I need something different there but what am I missing? also from my research I added adafruit_displayio_sh1107, adafruit_bus_device and adafruit_display_text Library to my library. These Firat 10 lines are the unmodified version Below it is what I changed but it still isn't right. I get a display but it looks like the last 2 lines of the Mu serial output vice the output from my main.py. Any assistance would be helpful.
Fist 10 lines original Main.py=
# import appropriate device libraries
import board
import busio
import time
from digitalio import DigitalInOut, Direction, Pull
import adafruit_ssd1306
# define setup for display board
i2c = busio.I2C(board.SCL, board.SDA)
oled = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c)
Modified Main.py=
import appropriate device libraries
import board
import displayio
import adafruit_displayio_sh1107
import terminalio
import busio
import time
from digitalio import DigitalInOut, Direction, Pull
# define setup for display board
displayio.release_displays()
# oled_reset = board.D9
# Use for I2C
i2c = board.I2C()
display_bus = displayio.I2CDisplay(i2c, device_address=0x3C)
oled = displayio.I2CDisplay
# SH1107 is vertically oriented 64x128
WIDTH = 128
HEIGHT = 64
BORDER = 2
display = adafruit_displayio_sh1107.SH1107(
display_bus, width=WIDTH, height=HEIGHT, rotation=0)
Setting up the Adafruit FeatherWing OLED - 128x64 OLED Add-o
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- andyzimmerman
- Posts: 26
- Joined: Sat Aug 15, 2020 11:49 am
- adafruit_support_carter
- Posts: 29167
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Setting up the Adafruit FeatherWing OLED - 128x64 OLED A
There's a CircuitPython example for that OLED FeatherWing here:
https://learn.adafruit.com/adafruit-128 ... cuitpython
https://learn.adafruit.com/adafruit-128 ... cuitpython
Please be positive and constructive with your questions and comments.