fixing plotled to use writeLine

This commit is contained in:
Peli de Halleux 2018-03-08 13:11:13 -08:00
parent c9963f7a56
commit 26a394ae71

View File

@ -20,7 +20,7 @@
//% parts="ledmatrix" //% parts="ledmatrix"
export function plotBarGraph(value: number, high: number): void { export function plotBarGraph(value: number, high: number): void {
let now = input.runningTime(); let now = input.runningTime();
serial.writeString(value.toString() + "\r\n"); serial.writeLine(value.toString());
value = Math.abs(value); value = Math.abs(value);
if (high != 0) barGraphHigh = high; if (high != 0) barGraphHigh = high;