From 53e447c33c0872b204596d3b9d2de60b5aeef57b Mon Sep 17 00:00:00 2001 From: Galen Nickel Date: Fri, 26 Oct 2018 21:00:58 -0700 Subject: [PATCH] Update the the connect code for 'inchworm' (#1545) --- docs/projects/inchworm/connect.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/projects/inchworm/connect.md b/docs/projects/inchworm/connect.md index 5d1ad573..feb00970 100644 --- a/docs/projects/inchworm/connect.md +++ b/docs/projects/inchworm/connect.md @@ -11,7 +11,7 @@ Remote control your inchworm with another @boardname@ You will need one more @boardname@ for this part. By using the radio, we can control the inchworm with another @boardname@. Download the code below to the @boardname@ on the inchworm and then again onto a "controller" @boardname@. Whenever button **A** is pressed, the inchworm moves once. ```blocks -radio.onReceivedNumber(({ receivedNumber }) => { +radio.onReceivedNumber(function (receivedNumber: number) { pins.servoWritePin(AnalogPin.P0, 0) basic.pause(500) pins.servoWritePin(AnalogPin.P0, 180) @@ -24,4 +24,4 @@ input.onButtonPressed(Button.A, () => { ```package radio -``` \ No newline at end of file +```