guidosch / bikecounter

This repository contains the hardware and software components of a PIR based tracking device to monitor the usage of local bike trails. The data is sent over LoRaWAN to TTN and from there to a Google Cloud backend which stores the data and provides api endpoints for the data visualization web UI.
Creative Commons Zero v1.0 Universal
5 stars 0 forks source link

Defined state of unsued pins #9

Closed MeierTobias closed 2 years ago

MeierTobias commented 2 years ago

Set all the unsued digital pins to a defined state to avoid leakage. (save power)

pinMode(pin, OUTPUT);
digitalWrite(pin, LOW);