Recitation 3: Workout
A short video of myself doing step 4 and 5 int SENSOR_PIN = 2; int tiltVal; int prevTiltVal; int count; void setup() { pinMode(SENSOR_PIN, INPUT); // Set sensor pin as an INPUT pin Serial.begin(9600); } void loop() { // read the state of the sensor tiltVal = digitalRead(SENSOR_PIN); // if the tilt sensor value changed, … Continue reading Recitation 3: Workout