my mind was simply too "embedded"...the following works as expected:
Bangle.setLCDMode(); // use normal display mode
g.clear();
const Width = g.getWidth();
const Height = g.getHeight();
for (let x = 0; x < Width; x++) {
let Color = x/Width;
g.setColor(Color,0,0);
g.drawLine(x,0, x,Height-1);
}
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Indeed,
my mind was simply too "embedded"...the following works as expected:
Thank you very much for your help!