Created
January 27, 2019 02:43
-
-
Save manekinekko/3afd35ca285503569d16ff983b114e96 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const omega2gpio = require('omega2-gpio'); | |
const gpio = new omega2gpio(); | |
gpio.tests().then( () => { | |
const p = g.pin({pin: 1, mode: 'output'}); | |
p.set(1); // set to HIGH | |
setTimeout( () => { | |
p.set(0); // set to LOW | |
}, 800); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment