Pytrack I2C Error when polling button_pressed()
-
Hi,
Running a script that effectively is in a polling loop waiting for a button press to start a logging application. The loop reads the button on the
Pytrack
board constantly. Within the loop the RTC is read once every minute.After one or two hours an
I2C Bus Error
occurs whenbutton_pressed()
is called. What could be the cause of this?By the way: Is the
button_pressed()
the result of a debounced input?REMARK
I need to rewire the switch using a switch directly on the
GPIO
and not via an I2C interface. Using I2C Is is not be very power efficient.