Skip to content

Commit

Permalink
Merge branch 'master' of github.com:GGreenwood/BlinkCube
Browse files Browse the repository at this point in the history
  • Loading branch information
Serisium committed Aug 2, 2015
2 parents 3e829f6 + b66d042 commit 510f491
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Animation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static PT_THREAD(next(State *s, volatile uint8_t controller[]))
RESET_IDLE;
PT_EXIT(&s->pt);
} else if(controller[5] & 0x04) {
brightness = (brightness + 1) % 8;
brightness = (brightness + 1) % 9;
for(s->count = 0; s->count < 20; s->count++) {
showColor(255, 255, 255, brightness);
PT_YIELD(&s->pt);
Expand Down
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
# BlinkCube
# Overview

Blinkcube is a program for the ATtiny85 microcontroller that allows it to decode a live GameCube controller signal and reactively power RGB LEDs based on button inputs.

[More information](http://electricexploits.net/shinewave/)

[Video](https://www.youtube.com/watch?v=1U4EOI_aFdc)

## Installation & Usage

BlinkCube has been written on a Linux system and requires the full avr-gcc toolchain to make.

In Debian, the toolchain can be set up with the following commands.

sudo apt-get install gcc-avr avr-libc avrdude

Then, download the repository to your local machine.

git clone [email protected]:GGreenwood/BlinkCube.git

To build the project, just run `make`, or `make flash` to build and program. You'll probably need to chance the `PROGRAMMER` line in `Makefile` in order to program it directly.

## Wiring

![Wiring](/images/wiring.png)

## Dependencies

This project depends on two libraries:
This project depends on two libraries, which are included in the libs folder.

* [Protothreads 1.4](http://dunkels.com/adam/pt/)
* Josh Levine's simple [NeoPixel Demo](https://github.com/bigjosh/SimpleNeoPixelDemo) library
Binary file added images/wiring.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 510f491

Please sign in to comment.