Spidey Wall is the name for a physical wall lit up by multiple addressable LED strips. This program is an LPC1768 web server to control the wall from a browser.
Dependencies: EthernetInterfacePlusHostname RdWebServer mbed-rtos mbed
This project is part of a Light-Wall using addressable LED strips (WS2801). I have published a few posts on my blog about the construction of the wall and building a game to play on it (PacMan). I have also had a guest post from a friend who has set his children the task of producing some interesting animations. The original post is http://robdobson.com/2015/07/spidey-wall/
So far, however, I hadn't fully connected the physical (and electronic) wall with the web-browser creations to drive it. This project is hopefully the final link. A fast and reliable web server using REST commands to drive the 1686 LEDs in the Spidey Wall from code running in a browser (say on an iPad while you are playing a game).
The approach taken here results in the ability to control the RGB values of all 1686 LEDs at a rate of 20 frames per second.
A blog post describing the whole thing is here:
http://robdobson.com/2015/08/a-reliable-mbed-webserver/
Idler.h@5:910909f34907, 2015-09-01 (annotated)
- Committer:
- Bobty
- Date:
- Tue Sep 01 15:53:52 2015 +0000
- Revision:
- 5:910909f34907
- Child:
- 6:8df79fe1afcd
Added an idle handler so there is something to show when nothing is being sent over HTTP
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Bobty | 5:910909f34907 | 1 | #ifndef IDLER__H |
Bobty | 5:910909f34907 | 2 | #define IDLER__H |
Bobty | 5:910909f34907 | 3 | |
Bobty | 5:910909f34907 | 4 | #include "mbed.h" |
Bobty | 5:910909f34907 | 5 | #include "DrawingManager.h" |
Bobty | 5:910909f34907 | 6 | |
Bobty | 5:910909f34907 | 7 | class Idler |
Bobty | 5:910909f34907 | 8 | { |
Bobty | 5:910909f34907 | 9 | public: |
Bobty | 5:910909f34907 | 10 | Idler(DigitalOut* pStatusLed, DrawingManager* pDrawingManager); |
Bobty | 5:910909f34907 | 11 | static void tick(); |
Bobty | 5:910909f34907 | 12 | static void notIdle(); |
Bobty | 5:910909f34907 | 13 | static void displayStep(); |
Bobty | 5:910909f34907 | 14 | |
Bobty | 5:910909f34907 | 15 | private: |
Bobty | 5:910909f34907 | 16 | static DigitalOut* _pStatusLed; |
Bobty | 5:910909f34907 | 17 | static bool _isIdle; |
Bobty | 5:910909f34907 | 18 | static unsigned int _stepCount; |
Bobty | 5:910909f34907 | 19 | static DrawingManager* _pDrawingManager; |
Bobty | 5:910909f34907 | 20 | static Ticker _idleTicker; |
Bobty | 5:910909f34907 | 21 | static Timer _idleTimer; |
Bobty | 5:910909f34907 | 22 | |
Bobty | 5:910909f34907 | 23 | }; |
Bobty | 5:910909f34907 | 24 | |
Bobty | 5:910909f34907 | 25 | #endif |