Great news about the build. I'll see about switching my compiler over to the newer compiler - perhaps it was actually some problem with the old one (which I'd been using because it managed better code size in -O3).
The LCD variable is created in libs/graphics/jswrap_graphics.c - you're not getting duplicates now though? It's actually an instance of Graphics that renders direct to the LCD via FSMC. Try LCD.drawLine(0,0,100,100). Last time I looked into this it seemed that it was actually some crash when trying to initialise the LCD a second time. All seemed a bit strange though.
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.
Great news about the build. I'll see about switching my compiler over to the newer compiler - perhaps it was actually some problem with the old one (which I'd been using because it managed better code size in -O3).
The LCD variable is created in
libs/graphics/jswrap_graphics.c
- you're not getting duplicates now though? It's actually an instance of Graphics that renders direct to the LCD via FSMC. TryLCD.drawLine(0,0,100,100)
. Last time I looked into this it seemed that it was actually some crash when trying to initialise the LCD a second time. All seemed a bit strange though.