New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CheerLights example for the Galactic Unicorn #546
CheerLights example for the Galactic Unicorn #546
Conversation
CheerLights MicroPython client. You will need the secrets file with your network details, in the same folder as cheerlights.py to run on start rename cheerlights.py to main.py
change name and password to match your network in secrets.py
Add new line to line 2
corrected formatting,
Thank you! Couple of changes - Our readme generally says to use
|
Updated to use the Pimoroni standard Wi-Fi method to be inline with other examples and rename filed to cheerlights.py so can be import from REPL
I have made the suggested changes to my code and have renamed cheer-lights.py to cheerlights.py as requested. |
added newline to last line
Thanks Brian, testing it now :) |
Thanks Brian! Note that: graphics.set_pen(color)
graphics.clear() Has the same effect as: for x in range(width):
for y in range(height):
graphics.set_pen(colour)
graphics.pixel(x, y) And would be much, much faster. I do wonder if we could also do a |
Been running for a few hours and seems to be working good :) |
updated with @Gadgetoid suggestion.
removed white space from line 20 in cheerlights
Looks good, many thanks! |
Simple IoT (internet of things) example code.
CheerLights MicroPython client.
You will need the secrets file with your network details, in the same folder as cheerlights.py to run on start rename cheerlights.py to main.py