Graphics #5266
Replies: 1 comment
-
Posted at 2016-02-27 by @MaBecker @ducky you can have Graphics, but with 1000 instead of 1400 vars and even without fonts in flash Posted at 2016-02-29 by @gfwilliams Since it's JS, you can also fake it:
... or something like that. Obviously you don't get any graphics functions but if you're happy poking bits and just want to use the existing drivers, that could be an option. Posted at 2016-03-08 by Hasse That is alright for a start. Is this "problem" also for "ILI9163 LCD CONTROLLER" and others? Posted at 2016-03-09 by @gfwilliams You would have to set the correct bits up in the arraybuffer
There is no way to 'just' draw text at the moment on ESP8266. If you used a proper Espruino board you wouldn't have that problem as there's a Graphics class with lines, text, etc built-in. But until someone manages to compile that into ESP8266 you're out of luck. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-02-27 by MrTimcakes
I'm assuming that the Graphics library isn't included in the build for ESP8266 both from this post by @MaBecker and my own testing with an ESP-12 and it returning "Uncaught ReferenceError: "Graphics" is not defined". Perhaps this should be documented on the Espruino on ESP8266 docs page.
If anyone does get a build working with graphics I'd love to know. I'm trying to fit a power supply, ESP8266 and SSD1306 (or some other display) into a light switch in a wall for monitoring server temps and usage, I'm not sure if I can fit one of my original Espruinos in there too.
Beta Was this translation helpful? Give feedback.
All reactions