mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
20 lines
347 B
JavaScript
20 lines
347 B
JavaScript
var history = [324,64,6473,3754,7543];
|
|
|
|
function draw() {
|
|
var lastx = 0;
|
|
var lasty = 240;
|
|
for (idx in history) {
|
|
var thisx = idx*LCD.WIDTH/history.length;
|
|
var thisy = 240 - history[idx]*2;
|
|
// ...
|
|
lastx = thisx. // this would have caused an assert fail
|
|
lasty = thisy;
|
|
}
|
|
}
|
|
|
|
setTimeout("result = 1;",10);
|
|
draw();
|
|
|
|
|
|
|