Hello!
I am using BiblioPixel and SimPixel to help teachers who want to introduce their students to coding with LEDs. I want to eventually use BiblioPixel on online development environments that have limited ports and be able to connect to SimPixel with port 80.
Currently I am working on my local machine (MacBook). I have been able to change the port to other four-digit port numbers and display on SimPixel just fine. However, when I choose port 80 for the driver in my project config, I get this cryptic error message:
ERROR: ‘NoneType’ object has no attribute ‘update’
``
Why might port 80 not be valid? I hope someone can point me in the right direction!
···
I run the project with this command:
bibliopixel run project.json
``
Below are my project files:
project.json
{
“animation”: “support.StripStudent”,
“driver”: {
“num”: 12,
“typename”: “SimPixel”,
“port”: 5000
},
“run”: {
“max_steps”: 50
}
}
``
support.py
from bibliopixel.animation.strip import BaseStripAnim
from bibliopixel.util import colors
class StripStudent(BaseStripAnim):
def __init__(self, layout):
super().__init__(layout)
self.internal_delay = 0.500
def step(self, amt=1):
for i in range(12):
if (self.cur_step % 2 == 0):
self.layout.set(i, colors.Red)
else:
self.layout.set(i, colors.Green)
``