Skip to content

Instantly share code, notes, and snippets.

@manekinekko
Created January 27, 2019 02:43
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