Used Dimension.X in sample instead of string

This commit is contained in:
Ron Hale-Evans 2016-06-14 14:01:00 -07:00
parent 0a722b2196
commit 20c7a16524

View File

@ -29,7 +29,7 @@ the magnetic force is stronger, and dimmer when it is weaker.
```blocks
led.plot(2, 2)
basic.forever(() => {
let f = input.magneticForce("x")
let f = input.magneticForce(Dimension.X)
led.setBrightness(f / 2000)
})
```