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
|
#### Arduino Mini Pro Code
|
||||||
|
|
||||||
|
```cpp
|
||||||
int LED = 13; // the pin to which the LED is connected
|
int LED = 13; // the pin to which the LED is connected
|
||||||
int PIR = 2; // the pin to which the sensor is connected
|
int PIR = 2; // the pin to which the sensor is connected
|
||||||
int previousState = LOW; // previous state of the sensor
|
int previousState = LOW; // previous state of the sensor
|
||||||
|
@ -293,3 +293,4 @@ previousState = currentState; // update the previous state
|
||||||
delay(100); // small delay to avoid false sensor readings
|
delay(100); // small delay to avoid false sensor readings
|
||||||
|
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue