mirror of
https://github.com/workinghard/Cube4Fun.git
synced 2025-12-13 20:32:09 +00:00
a
This commit is contained in:
18
README.md
18
README.md
@@ -14,7 +14,7 @@
|
|||||||
* Use the animation-tag from any internet service/device by sending GET/ request to activate animations
|
* Use the animation-tag from any internet service/device by sending GET/ request to activate animations
|
||||||
* Share your animations with everybody on [this site:](http://www.cube4fun.net)
|
* Share your animations with everybody on [this site:](http://www.cube4fun.net)
|
||||||
|
|
||||||
![alt text][overview1]
|
![alt text][overviewIMG1]
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
### Software
|
### Software
|
||||||
@@ -31,9 +31,9 @@
|
|||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
## Arduino with network shield and sd-card
|
## Arduino with network shield and SD card
|
||||||
This component is a main controller. The main objectives are:
|
This component is a main controller. The main objectives are:
|
||||||
* Handle the communcation like receiving animation requests and process
|
* Handle the communication like receiving animation requests and process
|
||||||
* Save and read animations from SD card
|
* Save and read animations from SD card
|
||||||
* Send data to the Rainbowduino
|
* Send data to the Rainbowduino
|
||||||
|
|
||||||
@@ -44,10 +44,20 @@ This component receives data over I2C protocol and displays it on the cube.
|
|||||||
It has also some animations. In case there is no data to display it plays default animations.
|
It has also some animations. In case there is no data to display it plays default animations.
|
||||||
There is no much logic on this side. For more details please check the [Rainbowduino Wiki](http://www.seeedstudio.com/wiki/Rainbow_Cube)
|
There is no much logic on this side. For more details please check the [Rainbowduino Wiki](http://www.seeedstudio.com/wiki/Rainbow_Cube)
|
||||||
|
|
||||||
|
### Implemented functions:
|
||||||
|
The communication is only one way and without call backs to achive maximum frames per second. Every sent character or number is exactly one byte. So basically it's a byte stream with following format:
|
||||||
|
| Command | Format | Description | Examples |
|
||||||
|
| --------------------- | ------------- | ----------- | -------- |
|
||||||
|
| Blink red/green/blue | b(r|g|b) | Blink for couple of seconds with specified color | br |
|
||||||
|
| Clear frame | d | Turn all LEDs off | d |
|
||||||
|
| Stream mode | s<64 bytes>n<64 bytes>S | Displays an unlimited number of frames in stream mode. Draws a frame as soon as 64 bytes (one frame) are received |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Cube4Fun Application
|
## Cube4Fun Application
|
||||||
The application is written in a new apple programming language [Swift](https://developer.apple.com/swift/). The communication part is using the [Poco Library](http://pocoproject.org/) which is written in C++. So it's easy to create a new application for any other device and don't care about TCP/IP communication.
|
The application is written in a new apple programming language [Swift](https://developer.apple.com/swift/). The communication part is using the [Poco Library](http://pocoproject.org/) which is written in C++. So it's easy to create a new application for any other device and don't care about TCP/IP communication.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[logo]: http://cube4fun.net/public/Cube6-128j.png "Logo"
|
[logo]: http://cube4fun.net/public/Cube6-128j.png "Logo"
|
||||||
[overview1]: http://cube4fun.net/public/Overview-Pic1.png "Overview"
|
[overviewIMG1]: http://cube4fun.net/public/Overview-Pic1.png "Overview"
|
||||||
|
|||||||
Reference in New Issue
Block a user