Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:reference:buttons [2017/11/14 12:29]
kniwwelino [Button options]
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.
 +
 +''return true if yes, false if no.''
 +
 +
 +====  boolean BUTTONBclicked() ====
 +Check if Button B 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.
 +
 +''return true if yes, false if no.''
 +
 +
 +==== boolean BUTTONAdown() ====
 +Check if Button A is pressed right now.
 +
 +''return true if yes, false if no.''
 +
 +
 +==== boolean BUTTONBdown() ====
 +Check if Button B is pressed right now.
 +
 +''return true if yes, false if no.''
 +
 +
 +===== Wiring =====
 +
 +===== Examples =====
 +