1.0.0 • Published 7 years ago

@danielr1996/led-lib-mock v1.0.0

Weekly downloads
1
License
WTFPL
Repository
-
Last release
7 years ago

led-lib

npm version

led-lib is node.js library to mock https://www.npmjs.com/package/@danielr1996/led-lib

Usage

  • install with npm install @danielr1996/led-lib-mock
  • Example Usage:
//import the library
const led = require('@danielr1996/led-lib-mock');

//Initialize the library with port 7 for the red pin, port 8 for the green pin and port 25 for the blue pin
led.init(7, 8, 25);

//Set the color to red 255 green 125 and blue 0
led.setColor(255,125,0);