From 898d03ab50719905dee5917d6b9aef831cca3352 Mon Sep 17 00:00:00 2001 From: Nick Ager Date: Tue, 6 Jan 2026 19:30:09 +0000 Subject: [PATCH] Start motor with speed argument found I needed `motor.start(50)` for the Lego train motor to run; with no arguments the motor didn't run and I thought there was an issue with the code, the motor or the BuildHat. --- docs/buildhat/passivemotor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/buildhat/passivemotor.py b/docs/buildhat/passivemotor.py index 68d0f26..fe74765 100755 --- a/docs/buildhat/passivemotor.py +++ b/docs/buildhat/passivemotor.py @@ -7,7 +7,7 @@ motor = PassiveMotor('A') print("Start motor") -motor.start() +motor.start(50) time.sleep(3) print("Stop motor") motor.stop()