Git Product home page Git Product logo

colorlight's Introduction

Colorlight 5A Programs

Once I learned that the Colorlight 5A 75B can drive LED panels and it's using plain Gigabit Ethernet, the urge came up to do that for no other reason than "Why not?"

The first problem was to analyze the protocol (see here). The next was sending Ethernet frames. I knew how to do this in C, but where's the fun in that...

Detecting the Colorlight 5A

Connect the card's Ethernet port (either one) to a GBit NIC or a L2 switch. If you have multiple Colorlight cards, do not connect them to one switch: since they use hardcoded MAC addresses, this won't work. Instead daisy-chain them.

See py/ for how to detect your card. You'll get message about firmward and resolution, or it'll hang.

Requirement

You need the MARCH compatible libeth.so from https://github.com/haraldkubota/l2-ethernet, so compile this first and copy to ./lib/$MARCH/

Sending data to the Colorlight 5A

For a short video of the old sendframe.dart: https://youtu.be/EI8ke8pR064 The newer examples are colorlight.dart to test for tearing (there is none visible), and loadimg.dart to display an image: https://youtu.be/VZurrjcs8FA

./loadimg.exe --nic=enp1s0 --image PICTUREFILE 

and a more complex example:

./loadimg.exe --nic enp1s0 --image rose.png --text1 "$(date '+%a %b-%d')" --text2 "$(date +%H:%M)" 

Building the executables

This will build the executables:

# Copy MARCH compatible libeth.so from the l2-ethernet git repo
$ cp -pr ../l2-ethernet/lib/x86_64 lib
$ dart pub get
$ make

colorlight's People

Contributors

haraldkubota avatar furstenheim avatar esbenvb avatar

Watchers

 avatar

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.