I’ve come across this site:
https://www.w3schools.com/nodejs/nodejs_raspberrypi_blinking_led.asp
Seems like a good start to control GPIO.
Will this work for Rock Pi 4 B?
Has anyone experience with Node.js + GPIO and can share opinion?
I’ve come across this site:
https://www.w3schools.com/nodejs/nodejs_raspberrypi_blinking_led.asp
Seems like a good start to control GPIO.
Will this work for Rock Pi 4 B?
Has anyone experience with Node.js + GPIO and can share opinion?
W3Schools provides a great starting point for working with GPIO using Node.js, but the example is tailored for the Raspberry Pi. The Rock Pi 4 B has a similar GPIO layout, but there may be differences in libraries and pin mappings. Instead of onoff
, you might need to use rpio
or mraa
for better compatibility. If you’re running Debian or Ubuntu on the Rock Pi, make sure to check its GPIO documentation and verify that the correct kernel modules are loaded. Have you tried running a simple script to test GPIO control yet?
As I remember I didn’t go for GPIO testing and usage.
I’ve already sold Rock Pi and switched to Intel NUC.
But thanks for the info.