You could also add just an image to your mez screen.like this. But it has to be on a sd card.
M5.Lcd.drawJpgFile(SD, "/c50x50_light_icon_off.jpg",20, 75, 50, 50);
i am trying to build my own dynamic slider ( that is what you see in the foto above ) But for a noob like me its pretty hard ( as in takes a lot of time ). But slowly i am getting some where.
The idea behind this is to change the lines for bitmaps ( top, bottom, right and left ) and let the slider button run in between the bitmaps.
Some how when you layer bitmaps they start looking interlaced on screen, so this could be a work around.
Next step is to draw a circle on top of the rectangle as indicator of the slider.
When you draw a circle, in white it doesn't remove it self when you draw the next so i have to mask the next/previous to make it look proper.
getting this dynamic is still pretty tricky for me but a good exercise.
Al lot of code to just draw a rectangle :O)