I have only scanned the code, but are sensorPinWRoll & sensorPinRoll related to two sensors?Code:
gpioSetMode(sensorPinWRoll, 1); gpioSetMode(sensorPinRoll, 0);... sensorRead = gpioRead(sensorPinWRoll); //sensorReadb = gpioRead(sensorPinRoll);
Do you intend to read the state from a pin defined as output? It looks odd.
Statistics: Posted by PiGraham — Wed Mar 06, 2024 1:51 pm