const int buttonPin = 11;
const int ledPin = 13;
int button_state = LOW;
void setup() {
//The following code will be executed once when your Arduino turns on.
pinMode(ledPin, OUTPUT); //Set pin 13 as an 'output' pin as we will make it output a voltage.
digitalWrite(ledPin, LOW); //This turns on pin 13/supplies it with 3.3 Volts.
pinMode(buttonPin, INPUT);
Serial.begin(9600);
Serial.println("Spatial Specialty");
}
void loop() {
int CurrentValButton = digitalRead(buttonPin);
if (CurrentValButton == LOW)
Serial.println("Button released");
else
Serial.println("Button pressed");
// Code to activate LED
digitalWrite(ledPin, LOW);
delay(1000);
digitalWrite(ledPin, HIGH);
delay(1000);
}