Update Munny_Lamp.ino
changed to event.acceleration.y < 0 per @jedgarpark
This commit is contained in:
parent
1039e2d97d
commit
c2e9757493
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ void accelerometer_check() {
|
|||
Serial.print(" \tZ: "); Serial.print(event.acceleration.z);
|
||||
Serial.println(" m/s^2 ");
|
||||
|
||||
if (event.acceleration.y >= 0) {
|
||||
if (event.acceleration.y < 0) {
|
||||
analogWrite(RED_LED, random(0, 255));
|
||||
analogWrite(GREEN_LED, random(0, 255));
|
||||
analogWrite(BLUE_LED, random(0, 255));
|
||||
|
|
|
|||
Loading…
Reference in a new issue