Comments (3)
@mirkin - thank you so much. Changing to await asyncio.sleep
did the trick!
Updated and working version here:
https://github.com/OpenDevEd/plasma-pico-web-server-control
from pico-web-server-control.
Firstly thank you for trying out our code.
We don't have that particular device, or we'd figure it out for you. Maybe an idea to pull all the code into main.py and start with one of their simple examples setting up the plasma stick at the start of the code and led_strip.start() then copy their while True loop into our main() function replacing their time.sleep with await asyncio.sleep then having a variable you change with your plasma/1 and plasma/2 with a conditional in the loop to make a change to the stick. Be sure to use global with the variable you are changing in main and plasma.
This way you narrow the problem down because all your code is in main.py apart from the plasma_stick
In our next video and the one on toms hardware we used an LED matrix which is a similar project to yours. We change the scrolling message and speed. Let us know how you get on.
from pico-web-server-control.
We don't have that particular device, or we'd figure it out for you.
I would be very happy to send you one :)
This way you narrow the problem down because all your code is in main.py apart from the plasma_stick
Thanks for tips - will try that!
In our next video and the one on toms hardware we used an LED matrix which is a similar project to yours. We change the scrolling message and speed. Let us know how you get on.
Change the message and speed of the display via the webserver, right?
Assuming that your message loops, it would be the same scenario as mine.
I found these two videos:
- https://www.tomshardware.com/news/raspberry-pi-pico-pong-tiny-2040
- https://www.tomshardware.com/news/raspberry-pi-pico-powered-pumpkin
but at a quick glance, it looks like they don't use the webserver, right?
from pico-web-server-control.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pico-web-server-control.