Update radio event parm usage descriptions (#2075)

This commit is contained in:
Galen Nickel
2019-05-28 21:09:08 -07:00
committed by GitHub
parent 147cc32220
commit 7950f1b4d7
8 changed files with 9 additions and 10 deletions

View File

@ -12,7 +12,7 @@ You will need 2 @boardname@ for this part. By using the radio, we can make the M
Download the code below to the @boardname@ on the Milk Carton Monster and another "controller" @boardname@. Whenever ``A`` is pressed, the Milk Carton Monster will move once.
```blocks
radio.onReceivedNumber(({ receivedNumber }) => {
radio.onReceivedNumber((receivedNumber) => {
pins.servoWritePin(AnalogPin.P0, 0)
basic.pause(500)
pins.servoWritePin(AnalogPin.P0, 180)