-
Install and run an MQTT broker (mosquitto is a good choice)
-
Install mqtt and ncurses-ruby gems (the plain ncurses gem is harder to natively compile)
sudo gem install mqtt ncurses-ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Rainbowduino v3.0 Library examples: | |
Sets pixels on 2D plane (8x8 matrix) | |
*/ | |
#include <Rainbowduino.h> | |
uint32_t colorRGB[13] = {0xFFFFFF,0x000000,0xFFFFFF,0x000,0xFF0000,0x00FF00,0x0000FF,0xFF0000,0x00FF00,0x0000FF,0xFF0000,0x00FF00,0x0000FF }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include <GD.h> | |
void setup() { | |
// give time for the gameduino splash screen to be displayed | |
delay(2500); | |
GD.begin(); | |
// load character set |
NewerOlder