Skip to content
Snippets Groups Projects
Commit ed73ea3f authored by Jody Foo's avatar Jody Foo
Browse files

Faster.

parent 27283315
No related branches found
No related tags found
No related merge requests found
......@@ -5,18 +5,18 @@ from grovepi import *
print("# Resetting digital ports")
for pin in range(2, 9):
print("D{}...".format(pin))
print(f"D{pin}...")
pinMode(pin, "OUTPUT")
digitalWrite(pin, 0)
time.sleep(0.5)
time.sleep(0.1)
print("Done.\n")
time.sleep(1)
time.sleep(0.5)
print("# Resetting analog ports")
for pin in range(14, 17):
apin = pin-14
print("A{}...".format(apin))
print(f"A{apin}...")
pinMode(pin, "OUTPUT")
analogWrite(pin, 0)
time.sleep(0.5)
time.sleep(0.1)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment