Skip to content

Evented control of NTE74HC165 8−Bit Parallel−In/Serial−Out Shift Register

Notifications You must be signed in to change notification settings

tpickett/shift-register

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

shift-register

Node.js module for reading status of pins from a NTE74HC165 shift register. when pins changed state, the module will emit the shift register pin number that changed and the new value of the pin.

Quickstart

var shiftRegister = require('shift-register');

shiftRegister.on('stateChange', (pinData)=>{
        console.log(pinData);
        //pinData value: [{id: 1, value: 0}, {id:2, value: 1}, ...]
})

//you can also call the state of the pins directly
console.log(shiftRegister.state);

Install

Easily install the latest via npm:

$ npm install shift-register

About

Evented control of NTE74HC165 8−Bit Parallel−In/Serial−Out Shift Register

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published