Used Dimension.X in sample instead of string
This commit is contained in:
		@@ -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)
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user