Created
January 27, 2019 02:43
This file contains 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