0.7.1 • Published 4 years ago

lot-gpio v0.7.1

Weekly downloads
12
License
MIT
Repository
github
Last release
4 years ago

license node language

node-lot-gpio

Installation

Ref: https://github.com/loliot/lot

sudo add-apt-repository -y ppa:loliot/ppa \
&& sudo apt install lot
sudo lot install cpp
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - \
&& sudo apt-get install -y nodejs
mkdir project \
&& cd project \
&& npm init -y
npm install lot-gpio

Blink example

const lot = require("lot-gpio");

let pin = 13;

if (process.argv.length > 2) {
    pin = Number(process.argv[2]);
}

const led = new lot.Gpio(pin);
led.mode(lot.DOUT);

setInterval(() => {
    led.toggle();
}, 200);
0.7.1

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.1.0

4 years ago

0.2.0

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.1

4 years ago