Update Munny_Lamp.ino

changed to event.acceleration.y < 0 per @jedgarpark
This commit is contained in:
Mike Barela 2018-11-06 10:03:30 -05:00 committed by GitHub
parent 1039e2d97d
commit c2e9757493
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -198,7 +198,7 @@ void accelerometer_check() {
Serial.print(" \tZ: "); Serial.print(event.acceleration.z); Serial.print(" \tZ: "); Serial.print(event.acceleration.z);
Serial.println(" m/s^2 "); Serial.println(" m/s^2 ");
if (event.acceleration.y >= 0) { if (event.acceleration.y < 0) {
analogWrite(RED_LED, random(0, 255)); analogWrite(RED_LED, random(0, 255));
analogWrite(GREEN_LED, random(0, 255)); analogWrite(GREEN_LED, random(0, 255));
analogWrite(BLUE_LED, random(0, 255)); analogWrite(BLUE_LED, random(0, 255));