<s> import time <EOL> TIME = <NUM_LIT:0.1> <EOL> BUTTON = <NUM_LIT:4> <EOL> import anyio . GPIO as GPIO <EOL> BUTTON = <NUM_LIT:4> <EOL> def setup ( ) : <EOL> GPIO . setmode ( GPIO . BCM ) <EOL> GPIO . setup ( BUTTON , GPIO . IN ) <EOL> def loop ( ) : <EOL> while True : <EOL> time . sleep ( TIME ) <EOL> b = GPIO . input ( BUTTON ) <EOL> if not b : <EOL> print ( "<STR_LIT>" ) <EOL> else : <EOL> print ( "<STR_LIT>" ) <EOL> try : <EOL> setup ( ) <EOL> loop ( ) <EOL> finally : <EOL> GPIO . cleanup ( ) </s>
