[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"integration-node-red-node-pi-gpio\u002F":3},{"_id":4,"categories":5,"author":8,"description":12,"npmOwners":13,"npmScope":16,"name":4,"ffCertified":17,"downloads":18,"version":20,"updatedAt":21,"maintainers":22,"homepage":26,"bugs":27,"repository":29,"time":33,"lastUpdated":21,"created":34,"license":61,"githubOwner":62,"githubRepo":63,"examples":64,"readme":65},"node-red-node-pi-gpio",[6,7],"catalogue_hardware","catalogue",{"name":9,"email":10,"url":11},"Dave Conway-Jones","dceejay@gmail.com","http:\u002F\u002Fnodered.org","The basic Node-RED node for Pi GPIO",[14,15],"knolleary","dceejay",null,false,{"week":19},2138,"2.0.7","2026-02-27T19:51:07.709Z",[23,25],{"name":14,"email":24},"nick.oleary@gmail.com",{"name":15,"email":10},"https:\u002F\u002Fgithub.com\u002Fnode-red\u002Fnode-red-nodes#readme",{"url":28},"https:\u002F\u002Fgithub.com\u002Fnode-red\u002Fnode-red-nodes\u002Fissues",{"type":30,"url":31,"directory":32},"git","git+https:\u002F\u002Fgithub.com\u002Fnode-red\u002Fnode-red-nodes.git","tree\u002Fmaster\u002Fhardware\u002FPiGpio",{"created":34,"modified":21,"1.0.1":35,"1.0.2":36,"1.0.3":37,"1.0.4":38,"1.0.5":39,"1.0.6":40,"1.0.8":41,"1.0.9":42,"1.1.1":43,"1.2.0":44,"1.2.1":45,"1.2.2":46,"1.2.3":47,"1.3.0-beta":48,"2.0.0-beta":49,"2.0.0-beta2":50,"2.0.0-beta3":51,"2.0.0-beta4":52,"2.0.0":53,"2.0.1":54,"2.0.2":55,"2.0.3":56,"2.0.4":57,"2.0.5":58,"2.0.6":59,"2.0.7":60},"2019-06-27T21:25:39.456Z","2019-06-27T21:25:39.604Z","2019-07-10T08:53:00.925Z","2019-07-10T09:29:43.004Z","2019-09-26T19:26:23.842Z","2019-10-06T08:51:46.904Z","2019-10-06T10:59:31.458Z","2020-04-03T21:26:24.960Z","2020-04-10T21:45:36.536Z","2020-05-09T15:51:34.300Z","2020-08-31T09:49:12.025Z","2020-11-16T15:06:50.813Z","2020-12-04T13:47:40.553Z","2020-12-04T13:48:23.601Z","2021-02-09T11:47:41.078Z","2021-02-09T17:04:22.190Z","2021-02-11T11:00:32.779Z","2021-06-15T21:24:47.534Z","2021-06-17T18:57:34.832Z","2021-11-11T21:10:52.317Z","2021-11-16T22:57:19.973Z","2022-03-11T17:54:25.826Z","2022-04-05T14:38:41.587Z","2022-07-14T10:29:03.419Z","2022-07-14T18:01:34.294Z","2023-03-15T10:23:10.575Z","2026-02-27T19:51:07.569Z","Apache-2.0","node-red","node-red-nodes",[],"\u003Ch1 id=\"node-red-node-pi-gpio\">\u003Ca class=\"header-anchor\" href=\"#node-red-node-pi-gpio\">node-red-node-pi-gpio\u003C\u002Fa>\u003C\u002Fh1>\n\u003Cp>A set of \u003Ca href=\"http:\u002F\u002Fnodered.org\" target=\"_new\">Node-RED\u003C\u002Fa> nodes to interact with Pi GPIO using the RPi.GPIO python library that is part of Raspbian.\u003C\u002Fp>\n\u003Cp>It also include a simple node that detect mouse buttons and also keyboard clicks. Note: this\npicks up mouse keys direct from the keyboard so should work even when the app does not have\nfocus, but YMMV.\u003C\u002Fp>\n\u003Cp>If you need servo control then look at the\n\u003Ca href=\"https:\u002F\u002Fflows.nodered.org\u002Fnode\u002Fnode-red-node-pi-gpiod\">node-red-node-pi-gpiod\u003C\u002Fa> node\nas this is a lot more accurate timing wise, and more suitable for driving servos\u003C\u002Fp>\n\u003Ch2 id=\"install\">\u003Ca class=\"header-anchor\" href=\"#install\">Install\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Either use the Node-RED Menu - Manage Palette option to install, or run the following\ncommand in your Node-RED user directory - typically \u003Ccode>~\u002F.node-red\u003C\u002Fcode>\u003C\u002Fp>\n\u003Cpre>\u003Ccode>    npm i node-red-node-pi-gpio\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The python library may also work with other distros running on a Pi (like Ubuntu or Debian) - you will need to install the PIGPIO package and run the following commands in order to gain full access to the GPIO pins as this ability is not part of the default distro. This is NOT necessary on Raspbian.\u003C\u002Fp>\n\u003Cpre>\u003Ccode>    sudo apt-get install python-pip python-dev\n    sudo pip install RPi.GPIO\n    sudo addgroup gpio\n    sudo chown root:gpio \u002Fdev\u002Fgpiomem\n    sudo adduser $USER gpio\n    echo 'KERNEL==\"gpiomem\", NAME=\"%k\", GROUP=\"gpio\", MODE=\"0660\"' | sudo tee \u002Fetc\u002Fudev\u002Frules.d\u002F45-gpio.rules\n    sudo udevadm control --reload-rules &amp;&amp; sudo udevadm trigger\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2 id=\"usage\">\u003Ca class=\"header-anchor\" href=\"#usage\">Usage\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Note:\u003C\u002Fstrong> the diagram in the configuration shows pin numbers - the BCM GPIO field allows you to enter the GPIO number directly (this allows you to  use the node for other devices that have other BCM GPIO like the Pi Compute modules.)\u003C\u002Fp>\n\u003Ch3 id=\"input-node\">\u003Ca class=\"header-anchor\" href=\"#input-node\">Input node\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>Generates a \u003Ccode>msg.payload\u003C\u002Fcode> with either a 0 or 1 depending on the state of the input pin.\u003C\u002Fp>\n\u003Ch5 id=\"outputs\">\u003Ca class=\"header-anchor\" href=\"#outputs\">Outputs\u003C\u002Fa>\u003C\u002Fh5>\n\u003Cul>\n\u003Cli>\u003Ccode>msg.payload\u003C\u002Fcode> - \u003Cem>number\u003C\u002Fem> - the level of the pin (0 or 1)\u003C\u002Fli>\n\u003Cli>\u003Ccode>msg.topic\u003C\u002Fcode> - \u003Cem>string\u003C\u002Fem> - pi\u002F\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>You may also enable the input pullup resistor ↑ or the pulldown resistor ↓.\u003C\u002Fp>\n\u003Ch3 id=\"output-node\">\u003Ca class=\"header-anchor\" href=\"#output-node\">Output node\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>Can be used in Digital or PWM modes.\u003C\u002Fp>\n\u003Ch5 id=\"input\">\u003Ca class=\"header-anchor\" href=\"#input\">Input\u003C\u002Fa>\u003C\u002Fh5>\n\u003Cul>\n\u003Cli>\u003Ccode>msg.payload\u003C\u002Fcode> - \u003Cem>number | string\u003C\u002Fem>\u003C\u002Fli>\n\u003Cli>Digital - 0, 1 - set pin low or high. (Can also accept boolean \u003Ccode>true\u002Ffalse\u003C\u002Fcode>)\u003C\u002Fli>\n\u003Cli>PWM - 0 to 100 - level from 0 to 100%\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Cem>Hint\u003C\u002Fem>: The \u003Ccode>range\u003C\u002Fcode> node can be used to scale inputs to the correct values.\u003C\u002Fp>\n\u003Cp>Digital mode expects a \u003Ccode>msg.payload\u003C\u002Fcode> with either a 0 or 1 (or true or false),\nand will set the selected physical pin high or low depending on the value passed in.\u003C\u002Fp>\n\u003Cp>The initial value of the pin at deploy time can also be set to 0 or 1.\u003C\u002Fp>\n\u003Cp>When using PWM mode, the input value should be a number 0 - 100, and can be floating point.\u003C\u002Fp>\n",1784888478303]