From a7c3407da7056a35c3a90ecabd4498f970373561 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 21 Jun 2026 13:54:38 +0100 Subject: [PATCH] codeformat --- packages/mqtt/mqtt.mjs | 5 +++-- website/src/pages/workshop/motors.mdx | 10 ++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/mqtt/mqtt.mjs b/packages/mqtt/mqtt.mjs index a84628567..c0a958cfd 100644 --- a/packages/mqtt/mqtt.mjs +++ b/packages/mqtt/mqtt.mjs @@ -119,9 +119,10 @@ Pattern.prototype.mqtt = function ( }); }; - // This adds the 'move' and 'motor' commands to strudel -export const { move, motor } = createParams('move', 'motor'); window.move = move; window.motor = motor; +export const { move, motor } = createParams('move', 'motor'); +window.move = move; +window.motor = motor; // This adds the 'robot' command Pattern.prototype.robot = function (robot_id, address = 'ws://192.168.8.248:9001/mqtt') { return this.mqtt(undefined, undefined, '/move/' + robot_id, address); diff --git a/website/src/pages/workshop/motors.mdx b/website/src/pages/workshop/motors.mdx index 9d679dee9..761763be8 100644 --- a/website/src/pages/workshop/motors.mdx +++ b/website/src/pages/workshop/motors.mdx @@ -35,7 +35,7 @@ Let's get a motor running! 3. Plug a motor into 'servo' (not motor) plug numbered 1, with the yellow (lightest) cable closest to the '1', and the brown (darkest) cable outward -4. Run the below to set up some values, changing the `x` in 'robot('x')` to the letter on your microcontroller. +4. Run the below to set up some values, changing the `x` in 'robot('x')` to the letter on your microcontroller. - -