Update for spelling etc. in comments!
This commit is contained in:
1 parent
aefcf5af63
commit
d506a3c49d
197 files changed
+1006
-757
No files matched your search
@@ -153,7 +153,7 @@ void drawUpdate (bool sel) {
|
||||
}
|
||||
|
||||
// #########################################################################
|
||||
// Return a 16 bit rainbow colour
|
||||
// Return a 16-bit rainbow colour
|
||||
// #########################################################################
|
||||
uint16_t rainbow(byte value)
|
||||
{
|
||||
@@ -163,7 +163,7 @@ uint16_t rainbow(byte value)
|
||||
|
||||
value = value % 192;
|
||||
|
||||
byte red = 0; // Red is the top 5 bits of a 16 bit colour value
|
||||
byte red = 0; // Red is the top 5 bits of a 16-bit colour value
|
||||
byte green = 0; // Green is the middle 6 bits, but only top 5 bits used here
|
||||
byte blue = 0; // Blue is the bottom 5 bits
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ void setup()
|
||||
tft.setSwapBytes(true);
|
||||
|
||||
// The decoder must be given the exact name of the rendering function above
|
||||
TJpgDec.setCallback(tft_output);
|
||||
TJpgDec.setcallback(tft_output);
|
||||
}
|
||||
|
||||
void loop()
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// https://en.wikipedia.org/wiki/Direct_memory_access
|
||||
|
||||
// Tested with ESP32, Nucleo 64 STM32F446RE and Nucleo 144 STM32F767ZI
|
||||
// TFT's with SPI can use DMA, the sketch also works with 8 bit
|
||||
// TFT's with SPI can use DMA, the sketch also works with 8-bit
|
||||
// parallel TFT's (tested with ILI9341 and ILI9481)
|
||||
|
||||
// The sketch will run on processors without DMA and also parallel
|
||||
@@ -36,7 +36,7 @@
|
||||
// Color depth has to be 16 bits if DMA is used to render image
|
||||
#define COLOR_DEPTH 16
|
||||
|
||||
// 128x128 for a 16 bit colour Sprite (32Kbytes RAM)
|
||||
// 128x128 for a 16-bit colour Sprite (32Kbytes RAM)
|
||||
// Maximum is 181x181 (64Kbytes) for DMA - restricted by processor design
|
||||
#define IWIDTH 128
|
||||
#define IHEIGHT 128
|
||||
@@ -147,8 +147,8 @@ void setup() {
|
||||
ypos = (tft.height() - IHEIGHT) / 2;
|
||||
|
||||
// Define cprite colour depth
|
||||
spr[0].setColorDepth(COLOR_DEPTH);
|
||||
spr[1].setColorDepth(COLOR_DEPTH);
|
||||
spr[0].setcolorDepth(COLOR_DEPTH);
|
||||
spr[1].setcolorDepth(COLOR_DEPTH);
|
||||
|
||||
// Create the 2 sprites
|
||||
sprPtr[0] = (uint16_t*)spr[0].createSprite(IWIDTH, IHEIGHT);
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
// Blue Pill overclocked to 128MHz *no* DMA - 32MHz SPI 64 fps
|
||||
// Blue Pill overclocked to 128MHz with DMA - 32MHz SPI 116 fps
|
||||
|
||||
// ESP32 - 8 bit parallel 110 fps (no DMA)
|
||||
// ESP32 - 8-bit parallel 110 fps (no DMA)
|
||||
// ESP32 - 40MHz SPI *no* DMA 93 fps
|
||||
// ESP32 - 40MHz SPI with DMA 112 fps
|
||||
|
||||
|
||||
Reference in new issue
Block a user