Skip to content

Instantly share code, notes, and snippets.

@stephanebachelier
Forked from mikaelleven/readme.md
Last active December 9, 2023 01:24
Show Gist options
  • Select an option

  • Save stephanebachelier/b26f075aa40ad862379235930866b6e7 to your computer and use it in GitHub Desktop.

Select an option

Save stephanebachelier/b26f075aa40ad862379235930866b6e7 to your computer and use it in GitHub Desktop.
NodeJS SPI Dump for MCP3008 (and Raspberry Pi)

NodeJS SPI Dump for MCP3008

This is a simple script that reads all eight analog channels of an MCP3008 each second and outputs the result to the console.

I created this script to ease debugging of the MCP3008 ADC connected to my Raspberry Pi.

Installation

npm install rpio

Usage

xx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment