Plot Bar Graph
Displays a vertical bar graph based on the value and high value.
led.plotBarGraph(2, 20);
Parameters
- value: Number , high : Number displays a vertical bar graph based on the value and high value
Example: chart acceleration
basic.forever(() => {
let a = input.acceleration(Dimension.X);
led.plotBarGraph(a, 1023)
})
See also
brightness, fade in, fade out, LED screen, stop animation