pxt-calliope/docs/reference/led/plot-bar-graph.md
2016-04-13 08:27:45 -07:00

642 B

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