Skip to content

Instantly share code, notes, and snippets.

@manekinekko
Created January 27, 2019 02:43
Show Gist options
  • Save manekinekko/3afd35ca285503569d16ff983b114e96 to your computer and use it in GitHub Desktop.
Save manekinekko/3afd35ca285503569d16ff983b114e96 to your computer and use it in GitHub Desktop.
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