Test setting output pin high
This commit is contained in:
parent
f419bcd36e
commit
bde21e9ac7
|
@ -82,5 +82,18 @@ function microTest () {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//test stepping up of 3.3V RPI logic via
|
||||||
|
//Sparkfun PRT-10967 (NPC1402)
|
||||||
|
function stepupTest () {
|
||||||
|
const FWD = 13
|
||||||
|
const BWD = 19
|
||||||
|
const fwd = Gpio(FWD, 'out')
|
||||||
|
const bwd = Gpio(BWD, 'out')
|
||||||
|
|
||||||
|
console.log(`Setting pin ${FWD} high`)
|
||||||
|
fwd.set(1)
|
||||||
|
}
|
||||||
|
|
||||||
//releaseTest()
|
//releaseTest()
|
||||||
microTest()
|
//microTest()
|
||||||
|
stepupTest()
|
Loading…
Reference in New Issue