button_c — Onboard Button C¶
The main functionality and function of the button_c module
Function¶
Get the current state of button C. The result returned is
True: the button is pressed, or theFalse: button is not pressed.
Sample Code:¶
import codey
def loop():
while True:
if codey.button_c.is_pressed():
print("button C is pressed")
loop()