mirror of
https://github.com/meshtastic/meshtastic.git
synced 2025-02-21 03:25:51 -08:00
commit
8a38347dc8
|
@ -265,7 +265,7 @@ while True:
|
|||
|
||||
#### Arduino Mini Pro Code
|
||||
|
||||
|
||||
```cpp
|
||||
int LED = 13; // the pin to which the LED is connected
|
||||
int PIR = 2; // the pin to which the sensor is connected
|
||||
int previousState = LOW; // previous state of the sensor
|
||||
|
@ -292,4 +292,5 @@ previousState = currentState; // update the previous state
|
|||
}
|
||||
delay(100); // small delay to avoid false sensor readings
|
||||
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue