From f0b249feed49ed6f4ac08278fbb8068cd08847bb Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Fri, 9 Dec 2022 19:34:16 -0500 Subject: [PATCH] clean wheels --- misc/spin_wheels.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 misc/spin_wheels.py diff --git a/misc/spin_wheels.py b/misc/spin_wheels.py new file mode 100644 index 0000000..36ce8d3 --- /dev/null +++ b/misc/spin_wheels.py @@ -0,0 +1,13 @@ +# script for spinning wheels for cleaning +from spike import PrimeHub, LightMatrix, Button, StatusLight, ForceSensor, MotionSensor, Speaker, ColorSensor, App, DistanceSensor, Motor, MotorPair +from spike.control import wait_for_seconds, wait_until, Timer +from math import * + +hub = PrimeHub() + +hub.light_matrix.show_image('HAPPY') + +motor_pair = MotorPair('A', 'B') +motor_pair.start_tank(70, 70) +wait_for_seconds(20) +motor_pair.stop()