iiot2k / gpiox

Raspberry Pi gpiox node.js and C++ library
Apache License 2.0
1 stars 0 forks source link

GPIO control does not work on Pi Zero 1 or 2 😣 #2

Open supercrab opened 3 weeks ago

supercrab commented 3 weeks ago

Hi,

Thanks for library! 😊 I've used it in a Volumio plugin. It's been tested on a Pi 5 and Pi 4 and setting GPIO works fine. However, on my Pi Zero 2 and Pi Zero, setting GPIO doesn't seem to do anything.

gpiox.set_gpio(OUTPUT_PIN, 0);

What could be the issue?

iiot2k commented 3 weeks ago

Hello, that's very interesting. Unfortunately I don't have a Pi Zero 2 or Pi Zero to test. But I'll order one to test. The gpiox library uses the official character interface from Linux. The Pi Zero 2 and Pi Zero have a different CPU. It may be that this interface is not implemented for the Pi Zero 2 and Pi Zero. But I can't tell you that until I've tested it. Can you also tell me which OS and node.js version you are using the library on? Derya

supercrab commented 3 weeks ago

Yes, I think you're right about the interface as the chips are different.

Here are the details: ☺

Thanks

Volumio Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Welcome to Volumio for Raspberry Pi (5.4.83-v7+ armv7l)
volumio@volumio3:~$ node -v
v14.15.4

volumio@volumio3:~$ hostnamectl
   Static hostname: volumio3
         Icon name: computer
        Machine ID: 29f71c0343f0889aad6c0b1561a903be
           Boot ID: 4f4b087dee2544c6bbaccc80a0ea907a
  Operating System: Raspbian GNU/Linux 10 (buster)
            Kernel: Linux 5.4.83-v7+
      Architecture: arm