Closed sumotoy closed 9 years ago
0.69b2 online with full 8 bit support (preview). The begin function has a hidden parameter that set display depth from the beginnin but as promised you will able to change screen depth on the fly with a new command:
tft.setColorBpp(8 or 16);
// and
tft.getColorBpp(); //return the current color depth
calling setColorBpp before any layer command will inform library that screen has multilayer capabilities (the lower bith deph allow RA8875 chip to use internal memory for that) so people with screen over 480*272 can use layer as well (but limited to 256 colors). Of course, set setColorBpp(16) will be back to 65K colors.
I've decided to add the complete 256 color support to library, this will allow people with display over 272*480 to use layers (one of the best feature of this chip). I will add also a method to insert 8 bit images translated by RA hardware into 16 bit and monocrome images into color one (always with RA hardware).
Working at 8 bit colors it's not as easy since there are many registers connected:
My goal is to allow user to switch color space in the middle of their code so they can use full color until it's possible, not easy but possible!