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/
DrawingManager.h@2:99eb4c6e9ea4, 2015-08-29 (annotated)
- Committer:
- Bobty
- Date:
- Sat Aug 29 05:33:30 2015 +0000
- Revision:
- 2:99eb4c6e9ea4
- Parent:
- 1:362331cec9b7
- Child:
- 4:b521815f2657
Working for simple cases
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Bobty | 1:362331cec9b7 | 1 | #ifndef DRAWING_MANAGER |
Bobty | 1:362331cec9b7 | 2 | #define DRAWING_MANAGER |
Bobty | 1:362331cec9b7 | 3 | |
Bobty | 1:362331cec9b7 | 4 | #include "mbed.h" |
Bobty | 1:362331cec9b7 | 5 | #include "ledstrip.h" |
Bobty | 1:362331cec9b7 | 6 | #include "cmdmsg.h" |
Bobty | 1:362331cec9b7 | 7 | |
Bobty | 1:362331cec9b7 | 8 | class DrawingManager |
Bobty | 1:362331cec9b7 | 9 | { |
Bobty | 1:362331cec9b7 | 10 | public: |
Bobty | 2:99eb4c6e9ea4 | 11 | DrawingManager(); |
Bobty | 2:99eb4c6e9ea4 | 12 | void init(int numLeds, int splitPoint); |
Bobty | 1:362331cec9b7 | 13 | void service(); |
Bobty | 1:362331cec9b7 | 14 | char* start(const unsigned char* cmdBuf, int cmdLen); |
Bobty | 1:362331cec9b7 | 15 | |
Bobty | 1:362331cec9b7 | 16 | private: |
Bobty | 1:362331cec9b7 | 17 | ledstrip* pLedStrip; |
Bobty | 1:362331cec9b7 | 18 | bool isBusy; |
Bobty | 1:362331cec9b7 | 19 | }; |
Bobty | 1:362331cec9b7 | 20 | |
Bobty | 1:362331cec9b7 | 21 | #endif |