Giter Site home page Giter Site logo

ronbuist / ws2801scratch Goto Github PK

View Code? Open in Web Editor NEW
5.0 0.0 1.0 57 KB

A Scratch extension and python-based server for WS2801 led strips connected to Raspberry Pi

License: GNU Affero General Public License v3.0

JavaScript 35.59% Python 64.41%
raspberry-pi ws2801 scratch scratch-extension python javascript led-strips leds

ws2801scratch's People

Contributors

ronbuist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Forkers

teeso

ws2801scratch's Issues

Merge and rename to ws28xx

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.

Reversed Green and Blue variables in some of the server code

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.