Skip to content

Commit f362188

Browse files
authored
Merge pull request #280 from FunDeckHermit/patch-1
Changed toggle() to value()
2 parents 6490eac + ce85229 commit f362188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pin = Pin("LED", Pin.OUT)
6060
print("LED starts flashing...")
6161
while True:
6262
try:
63-
pin.toggle()
63+
pin.value(not pin.value())
6464
sleep(1) # sleep 1sec
6565
except KeyboardInterrupt:
6666
break

0 commit comments

Comments
 (0)