Delay?
Posted: Thu Jun 14, 2018 7:13 am
I have tried to use the delay function/word on the online demo, error message says does not exist, delay in ms.
pyb.delay(ms)
# Using the Servo
# Make sure you have the Servo checkbox marked!
import machine
import pyb
# The pyboard has four simple servo connections
servo = pyb.Servo(1)
servo.angle(90, 5000)
pyb.delay(1000) # I also tried delay(1000)
servo.angle(1000)
pyb.delay(ms)
# Using the Servo
# Make sure you have the Servo checkbox marked!
import machine
import pyb
# The pyboard has four simple servo connections
servo = pyb.Servo(1)
servo.angle(90, 5000)
pyb.delay(1000) # I also tried delay(1000)
servo.angle(1000)