This commit is contained in:
Skylar Grant 2022-11-26 19:42:34 -05:00
parent 07c0efc2b0
commit f5dad8cd51
1 changed files with 2 additions and 3 deletions

View File

@ -1,9 +1,6 @@
//This example shows how to setup the pin for write mode with the default state as "on". Why do this? It can sometimes be useful to reverse the default initial state due to wiring or uncontrollable circumstances. //This example shows how to setup the pin for write mode with the default state as "on". Why do this? It can sometimes be useful to reverse the default initial state due to wiring or uncontrollable circumstances.
//var gpio = require('rpi-gpio'); //var gpio = require('rpi-gpio');
const offTime = 1500; //ms
const onTime = 500; //ms
//gpio.setup(7, gpio.DIR_OUT, write); //gpio.setup(7, gpio.DIR_OUT, write);
// function augerOn(err) { // function augerOn(err) {
@ -38,6 +35,8 @@ function sleep(ms) {
} }
async function cycleAuger() { async function cycleAuger() {
const offTime = 1500; //ms
const onTime = 500; //ms
augerOn(); augerOn();
await sleep($onTime); await sleep($onTime);
augerOff(); augerOff();