ronbuist / ws2801scratch Goto Github PK
View Code? Open in Web Editor NEWA Scratch extension and python-based server for WS2801 led strips connected to Raspberry Pi
License: GNU Affero General Public License v3.0
A Scratch extension and python-based server for WS2801 led strips connected to Raspberry Pi
License: GNU Affero General Public License v3.0
Now that the Python server process for WS2811/WS2812 strips has been added, both WS2801 and WS2811/WS2812 scripts should be merged into a single Python script for easier maintenance. The whole project should be renamed to ws28xx.
Hi,
Thanks for putting this project together. I am teaching some 5th grade students how to interact with a strand of WS2801 lights for a LED sign project at our school. I found this project, and it's perfect to get them up and running using scratch.
One issue I found is that normally we reference RGB as "red, green, blue" when making pixel change within the adafruit libraries. In some of the lines of server code, the green and blue variables are transposed, which makes the scratch interface set the wrong colors.
Line 72 pixels.set_pixel_rgb(pix, red, blue, green)
Line 75 pixels.set_pixel_rgb(pix, red, blue, green)
Line 85 color=Adafruit_WS2801.RGB_to_color(red,blue,green)
All these need to read (red, green, blue) for correct color selection.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.