31
edits
Changes
→Final Project: FingerHero
Ryan Glasgow
My interests in art generally involve around design, specifically interface design, such as websites. I'm currently the Creative Director at Extrabux.com and designed the current website, as well as wrote the HTML/CSS. Other websites I've designed can be seen at RyanGlasgow.net/work. The reason I switched my major from Economics, to Media: Computing Emphasis is because I began to become more and more interested in design, and decided to pursue a career as a designer/entrepreneur.
== '''Midterm Project''' ==
Proposal: My final project proposal is to make a version of guitar hero. Instead of a guitar the project would have 4 buttons that would be pressed using your fingers. The display would be an array of 16 LED's laid out in a 4x4 format. The lighted LED's would descend, and the person would need to hit the button as the LED is in the second to last row. On the side, there would be a vertical array of LED's that keep track of your score, and would increase each time you hit a new level. The user would be able to choose between three different songs.
FingerHero
by Ryan Glasgow
VIS147A
int score = 0;
void setup() {
Serial.begin(9600);
int mySong[20]={1,3,2,3,1,2,3,2,1,2,1,3,1,2,1,3,1,3,2,3};
// initialize the digital pin as an output:
for (int pinCount = 0; pinCount < 12; pinCount++) { pinMode(pinCount, OUTPUT); }
for (int rowCounter = 0; rowCounter < 20; rowCounter++) {
switch (mySong[rowCounter]) {
case 1:
// 1ST Col
digitalWrite(7, HIGH);
digitalWrite(6, HIGH);
digitalWrite(4, HIGH);
delay(500);
if(analogRead(0) > 1000) { digitalWrite(5, HIGH); score++; }
break;
case 2:
// 2nd Col
digitalWrite(113 nn/, HIGH);
digitalWrite(10, HIGH);
digitalWrite(9, HIGH);
delay(500);
if(analogRead(1) > 1000) { digitalWrite(8, HIGH); score++; }
break;
case 3:
// 3rd Col
digitalWrite(0, HIGH);
digitalWrite(1, HIGH);
digitalWrite(2, HIGH);
delay(500);
if(analogRead(2) > 1000) { digitalWrite(3, HIGH); score++; }
break;
}
delay(500);
for (int pinCount = 0; pinCount < 12; pinCount++) { digitalWrite(pinCount, LOW); }
}
}
void loop()
{
if(score > 0) { digitalWrite(8, HIGH); delay(500); }
if(score > 5) {digitalWrite(9, HIGH); delay(500); }
if(score > 10) { digitalWrite(10, HIGH); delay(500); }
if(score > 15) { digitalWrite(11, HIGH); delay(500); }
}
[[Image:FingerHero1.jpg]]
[[Image:FingerHero2.jpg]]
[[Image:FingerHero3.jpg]]