与树莓派GPIO交互

有一些可用于与树莓派GPIO引脚交互的节点模块。

node-red-node-pi-gpio

该模块在使用我们的安装脚本时会预装在Node-RED中。它提供了一种简单的方法来监控和控制GPIO引脚。

Raspberry Pi OS comes preconfigured for this node to work. If you are running a different distribution, such as Ubuntu, some additional install steps may be needed. The node's README has the details.

node-red-node-pi-gpiod

该模块使用PiGPIOd守护进程,相比默认节点提供了更多功能。例如,可以轻松配置该节点实现PWM输出或驱动伺服电机。

该模块可在此处获取 here

node-red-contrib-gpio

该模块通过使用Johnny-Five库,支持多种设备类型的GPIO操作。

该模块可在此处here获取。