better plotbargraph support
This commit is contained in:
parent
403111eac7
commit
1be364a364
@ -69,9 +69,7 @@ namespace led {
|
|||||||
//% blockId=device_plot_bar_graph block="plot bar graph of %value |up to %high" icon="\uf080" blockExternalInputs=true
|
//% blockId=device_plot_bar_graph block="plot bar graph of %value |up to %high" icon="\uf080" blockExternalInputs=true
|
||||||
export function plotBarGraph(value: number, high: number = 1023): void {
|
export function plotBarGraph(value: number, high: number = 1023): void {
|
||||||
|
|
||||||
writeString("v: ");
|
writeString(value.toString() + "\r\n");
|
||||||
writeString(value.toString());
|
|
||||||
writeString("\n");
|
|
||||||
|
|
||||||
let v = Math.abs((value * 15) / high);
|
let v = Math.abs((value * 15) / high);
|
||||||
let k = 0;
|
let k = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user