Sign in
kernel
/
pub
/
scm
/
linux
/
kernel
/
git
/
lkundrak
/
cforth
/
b1396ea8c2f714c9893b3a20ca8384a91aa7a588
/
.
/
src
/
app
/
esp8266
/
gpio-switch.fth
blob: 7ab975634dd5a5068269fb1f40bd9a02ad792c31 [
file
] [
log
] [
blame
]
\
Driver
for
switch
connected to a GPIO
3
value
switch
-
gpio
:
init
-
gpio
-
switch
(
gpio
# -- )
to
switch
-
gpio
true
gpio
-
input
switch
-
gpio gpio
-
mode
;
:
switch
?
(
--
flag
)
switch
-
gpio gpio
-
pin@
0
=
;