Raise to version 2.0.0
The library has been cleaned up as it has got a bit untidy due to the large number of small incremental changes. 4bit Sprite examples renaed to be consistent with others. alphaBlend example moved to generic folder (alphaBlend fn was moved to TFT_eSPI class). Added sections + explanatory comments to functions prototypes. Temporary comments added for potential gotchas for noobs when using DMA. spi_begin/end functions renamed to reflect functionality. Old fns retained for backwards compatibility with user setup.h files.
This commit is contained in:
1 parent
b954372859
commit
0e0fd75277
29 files changed
+1267
-797
No files matched your search
+4
-3
@@ -38,12 +38,13 @@ class TFT_eSprite : public TFT_eSPI {
|
||||
int8_t getColorDepth(void);
|
||||
|
||||
// Set the palette for a 4 bit depth sprite. Only the first 16 colours in the map are used.
|
||||
void createPalette(uint16_t *palette, int colors = 16);
|
||||
void createPalette(uint16_t *palette, int colors = 16); // Palette in RAM
|
||||
void createPalette(const uint16_t *palette, int colors = 16); // Palette in FLASH
|
||||
|
||||
// Set a single palette index to the given color
|
||||
// Set a single palette index to the given color
|
||||
void setPaletteColor(uint8_t index, uint16_t color);
|
||||
|
||||
// Get the color at the given palette index
|
||||
// Get the color at the given palette index
|
||||
uint16_t getPaletteColor(uint8_t index);
|
||||
|
||||
// Set foreground and background colours for 1 bit per pixel Sprite
|
||||
|
||||
Reference in new issue
Block a user