0 votes
in Touch Interface by (360 points)
The currently working s/w shows moon phases as a white on black circle with the phases as filled in white circle or partial white circle. I would much rather see the bmp images of the real moon! ...........Thanks!

1 Answer

+1 vote
by (19.9k points)
selected by
 
Best answer

One way to tackle this would be to load all the required bitmap images to SPIFFS (if there is enough space) and then to render them using the Mini Grafx lib's `drawBmpFromFile()` function.

by (360 points)
Worked great!! Now shows bmp images synced to "moonphases"!
by (19.9k points)
Great, happy to hear that! Did you take photos or videos that you published somewhere?
by (360 points)
No i haven't but, here is the very simple code: after uploading the bmp images into SPIFFS, I created a list of "if" statements......

if (moonData.phase == 7)  {
   gfx.drawBmpFromFile("/7_wan_cresc.bmp", 90, 260);}     

and it works great except that the images are colorized blue and yellow and not in  greyscale as image. Any ideas of how to change this?
by (19.9k points)
by (360 points)
Understand, but iI would expect an24 bit image to display in greayscale. how can i get the image to use white instead of blue and yellow?
by (230 points)
Could you explain how to transfer bmp images to SPIFFS memory
by (19.9k points)

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.

https://thingpulse.com

...