<s> '''<STR_LIT>''' <EOL> import time <EOL> import grovepi <EOL> slide = <NUM_LIT:0> <EOL> led = <NUM_LIT:1> <EOL> grovepi . pinMode ( slide , "<STR_LIT>" ) <EOL> grovepi . pinMode ( led , "<STR_LIT>" ) <EOL> time . sleep ( <NUM_LIT:1> ) <EOL> while True : <EOL> try : <EOL> sensor_value = grovepi . analogRead ( slide ) <EOL> if sensor_value > <NUM_LIT> : <EOL> grovepi . digitalWrite ( led , <NUM_LIT:1> ) <EOL> else : <EOL> grovepi . digitalWrite ( led , <NUM_LIT:0> ) <EOL> print ( "<STR_LIT>" , sensor_value ) <EOL> except IOError : <EOL> print ( "<STR_LIT>" ) </s>
