Friday 30 July 2010

The hardware system I'm making will
start of as a set of simple yes or no inputs which the LCD will respond to.
Next I want to create an art interpretation mobile application, that you can take to a gallery or an online setting to generate insights into artworks. I'll aim do that this week..

#define LED 13#define BUTTON 7
int val = 0;
void setup(){ Serial.begin(9600); pinMode(LED, OUTPUT); pinMode(BUTTON, INPUT);
void loop(){
val = digitalRead(BUTTON);
if(val == HIGH) {
digitalWrite(LED, HIGH); Serial.println("YES"); } else {
digitalWrite(LED, LOW); Serial.println("NO"); }

No comments:

Post a Comment