Open farshidtz opened 1 year ago
Not sure if helpful or not, but running the provided demo on a Raspberry Pi 4 with a 64-bit OS crashes the network and requires a reboot.
This library has only been tested with raspbian as OS - please debug and submit a PR for Ubuntu.
This also happens on Raspberry Pi OS 64bit. One of the problems is that pins on /sys/class/gpio/export
have a different base number (for me the first one is pin 512). One other problem is that the loop for waiting for a exported gpio is too fast, I have increased it by 5 times in order to be able to open the direction, also because the permissions are set asynchronously and takes some time.
The system freezes anyway.
Note also that gpio sysfs was deprecated almost 10 years ago
I used the example provided here to try out the library. I can see the LED turning on for the requested time but the Pi mostly freezes afterwards. Sometimes the LED stays on longer. An SSH session wouldn't survive but I could get more output using a serial UART consule:
System info: