You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
457 B

from pinouts import NodeMCU as pins
import time
import machine
def goCrazy():
while True:
print("Lowest Distance: " + str(getDistance()))
print("Movement: " + str(getMovement()))
toggleRaiseUp()
time.sleep(3)
print("Highest Distance: " + str(getDistance()))
print("Movement: " + str(getMovement()))
toggleRaiseUp()
toggleLowerDown()
time.sleep(3)
toggleLowerDown()