Hi,
Just to make sure I understand your situation correctly and that you do not get mixed up between displaying simple images and using dynamic bitmaps: what you are trying to do is just to change the image displayed according to the battery level right? You receive only the value of the battery life, not images stored in an SD card ?
What you can do is just to use an image widget and in your user code change the bitmap when you reach a certain value (battery life remaining). Put your images in PNG format in your TouchGFX/assets/images folder.
imageName.setBitmap(Bitmap(BITMAP_ID)); // ID of the image you want to show, go to BitmapDatabase.hpp to see the ID of your images
imageName.invalidate(); // do not forget to invalidate
PS: you need to include the bitmap database in your screen's cpp file otherwise the code will not find your images: #include "BitmapDatabase.hpp"
/Romain