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
//************************************************************************************************* | |
// Adjustable RGB LED Color Cube | |
// | |
// By: Dillon Nichols | |
// http://tinkeringetc.blogspot.com/2013/07/adjustable-rgb-led-color-cube.html | |
// | |
// Created in Arduino 1.0.5 | |
// | |
// Description: | |
// Drives four strips of RGB LEDs inside a cube structure by the use of a controller that |
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 <avr/io.h> | |
#include <util/delay.h> | |
#define SWITCH PB0 // pin 5 | |
int main(void) | |
{ | |
DDRB = 1<<4; // port B3, ATtiny13a pin 2 | |
PORTB = 1<<SWITCH; // port b0, switch input |
NewerOlder