add delay after movement
This commit is contained in:
parent
f7f06e2d1c
commit
06674217f6
1 changed files with 4 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
import board
|
||||
import digitalio
|
||||
import time
|
||||
|
||||
from adafruit_crickit import crickit
|
||||
from adafruit_ble.uart import UARTServer
|
||||
|
|
@ -52,3 +53,6 @@ while True:
|
|||
elif packet.button == ButtonPacket.DOWN:
|
||||
# The Down button was pressed.
|
||||
crickit.servo_1.angle = DOWN_ANGLE
|
||||
|
||||
# Wait a bit before returning to neutral position.
|
||||
time.sleep(0.25)
|
||||
|
|
|
|||
Loading…
Reference in a new issue