{"repo":"EdAlegrid/array-gpio","free":true,"listed":false,"github":"https://github.com/EdAlegrid/array-gpio","clone":"git clone https://github.com/EdAlegrid/array-gpio.git","description":"array-gpio is a low-level javascript library for Raspberry Pi using a direct register control.","language":"JavaScript","stars":21,"topics":["gpio","i2c","iot","onoff","plc","pwm","raspberry-pi","spi"],"license":"MIT","category":"analytics","readme_excerpt":"array-gpio array-gpio is a low-level javascript library for Raspberry Pi using a direct register control. It maps the ARM peripheral registers in memory using /dev/mem for PWM, I2C, SPI and /dev/gpiomem for GPIO. One of its features is the use of array objects for GPIO input monitoring and output control. ARM Peripheral Support - GPIO - PWM - I2C - SPI GPIO pin numbers All pin numbering used on this module are based on the RPI board's pinout diagram numbers 1 40 . For IoT or machine-to-machine applications, please check m2m using array-gpio. Table of contents 1. Supported Raspberry Pi Devices 2. Node.js version requirement 3. Supported OS 4. Installation 5. Quick Tour - Creating a GPIO input and output object - Monitoring the state of a GPIO input object - Using isOn and isOff to get the current state of a GPIO input/output object - Monitoring multiple GPIO input objects - Turning on and off a GPIO output with a delay - Create a GPIO input/output array object - Create a GPIO output pulse 6. API - GPIO - Input - Output - PWM - I2C - SPI Supported Raspberry Pi Devices Model: Pi Zero & Zero W, Pi 3 Model B+, Pi 4 Model B, Compute Module 3 & 4 (Generally most of the 40-pin models) Supported OS - Raspberry Pi OS (32 and 64-bit) - Raspbian - 64-bit Ubuntu 20+ (Only GPIO peripheral is supported) Nodejs Requirements Node.js version: 10.x, 12.x, 14.x, 16.x, 18.x (Ideally, the latest LTS version) Installation Quick Tour Example 1 Create a GPIO input and output object Connect a momentar","default_branch":null,"files":null,"tree":[],"storefront":"/r/EdAlegrid","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/EdAlegrid/array-gpio/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}