Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

lot-gpio

0.7.1 • Public • Published

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);

Install

npm i lot-gpio

DownloadsWeekly Downloads

10

Version

0.7.1

License

MIT

Unpacked Size

75.1 kB

Total Files

24

Last publish

Collaborators

  • avatar
  • avatar