What is the display device type?
Here is an example - you will need to use the library appropriate for your device
The driver's IC is ST7735. its a 1.44" display 128*128 pixels. ok thats good to know that the Espruino has these kind of libraries.
So I have access to a working library for the screen using the Arduino's C++ code. could I use this to write my own library for the screen?
Searching on the esprino site for that device code comes up with
So looks like you could use that library
Great! that's helpful, thank you. One further question; In my code, I have the image processed as an SVG file. Would I be able to store an SVG on the Espruino, and, If so, How would you recommend taking this, and sending it to the screen?
You wouldn't be able to render an SVG directly - you'd have to get it as a bitmap first. Once you have a bitmap there's some info on loading it into Espruino on this page - including a webpage that'll create the code for you when given an image: http://www.espruino.com/Graphics
ok. so would I be able to take my svg, convert it to bitmap, then send it to the screen all on the board? Or would it be better to use the graphics library to recreate the design?
Ahh - so you have an SVG that you plan to animate? You wouldn't be able to render it straight on the board - so it'd need doing beforehand.
You could convert all the different combinations of it to bitmaps and composite them together on the Espruino, or you could possibly export the different parts as polylines/polygons and then render those on the Espruino with the graphics lib?
But as you suggest, in the end it might just be easier to use the Graphics lib directly
Yeah so it does sound like the best/easiest option might be to redo the code. *sigh. Such is the life of a programmer. Great! I think this will do what I want it to do. Or at least, something very close.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem