New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

array-gpio

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-gpio

array-gpio is low-level javascript library for Raspberry Pi using direct register access.

latest
Source
npmnpm
Version
1.7.4
Version published
Weekly downloads
18
-40%
Maintainers
1
Weekly downloads
 
Created
Source

Version npm Custom badge

array-gpio

array-gpio is a low-level javascript library for Raspberry Pi using direct register access.

It maps the ARM peripheral registers in memory using /dev/mem for PWM, I2C, SPI and /dev/gpiomem for GPIO control.

One of its features is the use of array objects for GPIO input/output control.

ARM Peripheral Support

  • GPIO
  • PWM
  • I2C
  • SPI

GPIO pin numbers

All pin numbering used on this module are based on the RPI's board pinout diagram numbers 1~40.


Table of contents

Supported Raspberry Pi Devices

  • Model: Pi Zero & Zero W, Pi 3 Model B+, Pi 4, 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

$ npm install array-gpio

Keywords

bcm2835

FAQs

Package last updated on 20 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts