Used Dimension.X in sample instead of string
This commit is contained in:
parent
0a722b2196
commit
20c7a16524
@ -29,7 +29,7 @@ the magnetic force is stronger, and dimmer when it is weaker.
|
|||||||
```blocks
|
```blocks
|
||||||
led.plot(2, 2)
|
led.plot(2, 2)
|
||||||
basic.forever(() => {
|
basic.forever(() => {
|
||||||
let f = input.magneticForce("x")
|
let f = input.magneticForce(Dimension.X)
|
||||||
led.setBrightness(f / 2000)
|
led.setBrightness(f / 2000)
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user