@danielr1996/led-lib-mock
v1.0.0
Published
A node library to mock @danielr1996/led-lib
Downloads
2
Readme
led-lib
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);