forked from M-Labs/artiq
1
0
Fork 0

doc: fix bool input

This commit is contained in:
Sebastien Bourdeauducq 2016-06-03 22:56:12 -04:00
parent ec3641551c
commit 5ebd28f576
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ A method or function running on the core device (which we call a "kernel") may c
Modify the code as follows: :: Modify the code as follows: ::
def input_led_state() -> TBool: def input_led_state() -> TBool:
return bool(input("Enter desired LED state: ")) return input("Enter desired LED state: ") == "1"
class LED(EnvExperiment): class LED(EnvExperiment):
def build(self): def build(self):