Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ Code for [makers-game](https://github.com/emlyon/makers-game)
___
Install openFrameworks on Raspberry Pi using this guide: http://openframeworks.cc/setup/raspberrypi/raspberry-pi-getting-started/

Clone this rep in `~/openFrameworks/apps/myApps/`, then `make`
Install git with `sudo apt-get install git`.

Clone this rep in `~/openFrameworks/apps/myApps/`, then `cd` into the newly created folder and `make && make run`
11 changes: 7 additions & 4 deletions arcadeTable_arduino/arcadeTable_arduino.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
#define PIN 6
#define NUMPIXELS 209

#define WIDTH 19
#define HEIGHT 11

#define BLACK strip.Color( 0, 0, 0 )
#define WHITE strip.Color( 255, 255, 255 )
#define RED strip.Color( 255, 0, 0 )
Expand Down Expand Up @@ -30,10 +33,10 @@ void loop() {
strip.setPixelColor( i, BLACK );
}

int col = ( millis() / 100 ) % 11;
int startIndex = col * 19;
for( int i = 0; i < 19; i ++ ) {
strip.setPixelColor( i + startIndex, GREEN );
int line = ( millis() / 200 ) % WIDTH;
int startIndex = line * HEIGHT;
for( int i = 0; i < HEIGHT; i ++ ) {
strip.setPixelColor( i + startIndex, ORANGE );
}
strip.show();
}
Expand Down