UNPKG

pigpio

Version:

Fast GPIO, PWM, servo control, state change notification, and interrupt handling on the Raspberry Pi

11 lines (6 loc) 171 B
'use strict'; const Gpio = require('../').Gpio; const led = new Gpio(17, {mode: Gpio.OUTPUT}); setInterval(() => { led.digitalWrite(led.digitalRead() ^ 1); }, 100);