array-gpio

1.7.3 • Public • Published

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

  1. Supported Raspberry Pi Devices
  2. Node.js version requirement
  3. Supported OS
  4. Installation
  5. Quick Tour
  6. API

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.7.313latest

Version History

VersionDownloads (Last 7 Days)Published
1.7.313
1.7.26
1.7.11
1.7.01
1.6.91
1.6.81
1.6.72
1.6.61
1.6.51
1.6.41
1.6.32
1.6.21
1.6.11
1.6.01
1.5.92
1.5.81
1.5.71
1.5.61
1.5.51
1.5.42
1.5.31
1.5.22
1.5.12
1.5.01
1.4.01
1.3.91
1.3.81
1.3.72
1.3.62
1.3.51
1.3.41
1.3.32
1.3.21
1.3.11
1.3.02
1.2.91
1.2.82
1.2.72
1.2.61
1.2.51
1.2.41
1.2.31
1.2.211
1.2.22
1.2.11
1.2.01
1.1.631
1.1.621
1.1.612
1.1.602
1.1.591
1.1.582
1.1.571
1.1.562
1.1.551
1.1.542
1.1.532
1.1.521
1.1.512
1.1.501
1.1.491
1.1.481
1.1.471
1.1.461
1.1.452
1.1.441
1.1.431
1.1.421
1.1.412
1.1.401
1.1.392
1.1.381
1.1.371
1.1.361
1.1.351
1.1.341
1.1.331
1.1.321
1.1.311
1.1.301
1.1.292
1.1.281
1.1.271
1.1.261
1.1.251
1.1.21
1.1.11
1.1.02
1.0.82
1.0.72
1.0.61
1.0.52
1.0.41
1.0.31
1.0.21

Package Sidebar

Install

npm i array-gpio

Weekly Downloads

136

Version

1.7.3

License

MIT

Unpacked Size

163 kB

Total Files

25

Last publish

Collaborators

  • ealegrid