Notifications
Clear all

10/18/2023 Map Stopped Working?
Visit this post for the fix

Live Sectional PCB v1

3 Posts
2 Users
0 Reactions
842 Views
(@marty)
Member
Joined: 5 years ago
Posts: 0
Topic starter  

Hi Guys,

I designed a PCB for the Live Sectional so there is no need for all the wild wiring anymore 🙂

I have one problem, the OLED doesn't work right, if I test it with my own python code it works but with the live sectional image I only get "snow" (see pictures attached)

Can anyone help me with that? I also have 3 more PCBs for anyone who wants to test it as well. 

Thanks!

2021 03 04 16 49 06
2021 03 04 16 49 40

 


   
Quote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 559
 

That is very cool! Great job. I'm jealous.

Not sure why you are getting snow. Post your test code and I'll compare it to the LS code to see what might be different.

BTW: I'd love to buy one of your boards to play with if you still have one available. Let me know. - Mark


   
ReplyQuote
(@marty)
Member
Joined: 5 years ago
Posts: 0
Topic starter  

@markyharris I can send you one for free. You did all the work with the coding 🙂

PM me your address.

Here is the code I used for testing. 

import time
import subprocess
 
from board import SCL, SDA
import busio
from PIL import Image, ImageDraw, ImageFont
import adafruit_ssd1306
import board
import adafruit_tca9548a
 
import board
import digitalio
 
 
i2c = busio.I2C(board.SCL, board.SDA)
 
tca = adafruit_tca9548a.TCA9548A(i2c)
 
disp = {}
displays = 1
 
 
co = 0
while (co < displays):
    disp[co] = adafruit_ssd1306.SSD1306_I2C(128, 64, tca[co])
    co += 1
    
 
co = 0
 
while (co < displays):
    # Clear display.
    disp[co].fill(0)
    disp[co].show()
    co += 1
 
width = 128
height = 64
image = Image.new("1", (width, height))
 
# Get drawing object to draw on image.
draw = ImageDraw.Draw(image)
 
 
padding = -2
top = padding
bottom = height - padding
# Move left to right keeping track of the current x position for drawing shapes.
x = 0
 
font = ImageFont.load_default()
 
co = 0
 
while (co < displays):
    draw.rectangle((0, 0, width, height), outline=0, fill=0)
    draw.text((x, top + 0), "Display " + str(co), font=font, fill=255)
    disp[co].image(image)
    disp[co].show()
    time.sleep(0.1)
    co += 1

   
ReplyQuote
Share: