Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:reference:buttons [2017/10/30 11:27] kniwwelino created |
en:reference:buttons [2018/01/23 13:04] (current) kniwwelino |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Buttons ====== | ||
+ | |||
+ | ===== API ===== | ||
+ | |||
+ | ==== boolean BUTTONAclicked() ==== | ||
+ | Check if Button A has been clicked (pressed-released) since the last check. | ||
+ | |||
+ | Click state will be reset after checking, means calling this method twice it will report true, false. | ||
+ | |||
+ | '' | ||
+ | |||
+ | |||
+ | ==== boolean BUTTONBclicked() ==== | ||
+ | Check if Button B has been clicked (pressed-released) since the last check. | ||
+ | |||
+ | Click state will be reset after checking, | ||
+ | |||
+ | '' | ||
+ | |||
+ | |||
+ | ==== boolean BUTTONAdown() ==== | ||
+ | Check if Button A is pressed right now. | ||
+ | |||
+ | '' | ||
+ | |||
+ | |||
+ | ==== boolean BUTTONBdown() ==== | ||
+ | Check if Button B is pressed right now. | ||
+ | |||
+ | '' | ||
+ | |||
+ | |||
+ | ===== Wiring ===== | ||
+ | |||
+ | ===== Examples ===== | ||
+ | |||