Hello

i could not get hal_gpio inputs to work

until

(doh!)

addf hal_gpio.read threadname

arrgh! i spent days building systems and failing because of that omission.

-----------this works great-----------------

# hal_gpioTestAllInputs.hal

# next line allows all gpio pins and makes them all Inputs

loadrt hal_gpio exclude=0 dir=0

newthread fast 100000
newthread slow 1000000 fp

#loadusr halmeter

# new vvv
addf hal_gpio.read fast
# new ^^^

addf hal_gpio.write fast

# beware inputs are floating and wild, an external 10K to gnd will tame them
start

---------------eof------------------------

thanks to all tomp

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to