VolosR / TRexTTGOdisplay

49 stars 15 forks source link

ledcAttachPin(TFT_BL #2

Open hamedtorky opened 2 years ago

hamedtorky commented 2 years ago

https://github.com/VolosR/TRexTTGOdisplay/blob/50e4dcc888960fd10e66feff8714fed4fff6c919/Dino.ino#L153

????

ledcAttachPin(TFT_BLACK, pwmLedChannelTFT);

JamesLeeTrigg commented 2 years ago

I get the same problem on all VolosR projects

Compilation error: 'TFT_BL' was not declared in this scope

JamesLeeTrigg commented 2 years ago

even when I change TFT_BL to TFT_BLACK I get this

/Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI 2.cpp: In constructor 'TFT_eSPI::TFT_eSPI(int16_t, int16_t)': /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI 2.cpp:214:3: error: '_xpivot' was not declared in this scope _xpivot = 0; ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI 2.cpp:215:3: error: '_ypivot' was not declared in this scope _ypivot = 0; ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI 2.cpp: At global scope: /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI 2.cpp:2197:6: error: prototype for 'void TFT_eSPI::setTextColor(uint16_t, uint16_t)' does not match any in class 'TFT_eSPI' void TFT_eSPI::setTextColor(uint16_t c, uint16_t b) ^ In file included from /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI 2.cpp:17:0: /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.h:583:12: error: candidates are: void TFT_eSPI::setTextColor(uint16_t, uint16_t, bool) setTextColor(uint16_t fgcolor, uint16_t bgcolor, bool bgfill = false), // Set character (glyph) foreground and background colour, optional background fill for smooth fonts ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI 2.cpp:2185:6: error: void TFT_eSPI::setTextColor(uint16_t) void TFT_eSPI::setTextColor(uint16_t c) ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI 2.cpp: In member function 'void TFT_eSPI::setPivot(int16_t, int16_t)': /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI 2.cpp:2210:3: error: '_xpivot' was not declared in this scope _xpivot = x; ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI 2.cpp:2211:3: error: '_ypivot' was not declared in this scope _ypivot = y; ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI 2.cpp: In member function 'int16_t TFT_eSPI::getPivotX()': /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI 2.cpp:2221:10: error: '_xpivot' was not declared in this scope return _xpivot; ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI 2.cpp: In member function 'int16_t TFT_eSPI::getPivotY()': /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI 2.cpp:2231:10: error: '_ypivot' was not declared in this scope return _ypivot; ^ In file included from /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI 2.cpp:4274:0: /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp: In member function 'void TFT_eSprite::pushImage(int32_t, int32_t, int32_t, int32_t, uint16_t, uint8_t)': /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1040:3: error: 'PI_CLIP' was not declared in this scope PI_CLIP; ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1045:41: error: 'dx' was not declared in this scope uint8_t ptro = (uint8_t )data + ((dx + dy w) << 1); ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1045:46: error: 'dy' was not declared in this scope uint8_t ptro = (uint8_t )data + ((dx + dy w) << 1); ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1051:14: error: 'dh' was not declared in this scope while (dh--) ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1054:31: error: 'dw' was not declared in this scope memcpy(ptrs+1, ptro, (dw<<1) - 1); ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1066:14: error: 'dh' was not declared in this scope while (dh--) ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1068:28: error: 'dw' was not declared in this scope memcpy(ptrs, ptro, dw<<1); ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1077:40: error: 'dx' was not declared in this scope uint8_t ptro = (uint8_t )data + (dx + dy w); ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1077:45: error: 'dy' was not declared in this scope uint8_t ptro = (uint8_t )data + (dx + dy w); ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1081:12: error: 'dh' was not declared in this scope while (dh--) ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1083:26: error: 'dw' was not declared in this scope memcpy(ptrs, ptro, dw); ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1092:23: error: 'dy' was not declared in this scope for (int32_t yp = dy; yp < dy + dh; yp++) ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1092:37: error: 'dh' was not declared in this scope for (int32_t yp = dy; yp < dy + dh; yp++) ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1095:23: error: 'dx' was not declared in this scope int32_t dxypw = dx + yp w; ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1096:39: error: 'dw' was not declared in this scope for (int32_t xp = dx; xp < dx + dw; xp++) ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1119:29: error: 'dx' was not declared in this scope if ((x & 0x01) == 0 && (dx & 0x01) == 0 && (dw & 0x01) == 0) ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1119:49: error: 'dw' was not declared in this scope if ((x & 0x01) == 0 && (dx & 0x01) == 0 && (dw & 0x01) == 0) ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1123:24: error: 'dy' was not declared in this scope dx = (dx >> 1) + dy * (w>>1); ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1124:14: error: 'dh' was not declared in this scope while (dh--) ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1133:25: error: 'dy' was not declared in this scope for (int32_t yp = dy; yp < dy + dh; yp++) ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1133:39: error: 'dh' was not declared in this scope for (int32_t yp = dy; yp < dy + dh; yp++) ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1156:23: error: 'dy' was not declared in this scope for (int32_t yp = dy; yp < dy + dh; yp++) ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1156:38: error: 'dh' was not declared in this scope for (int32_t yp = dy; yp < dy + dh; yp++) ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1160:25: error: 'dx' was not declared in this scope for (int32_t xp = dx; xp < dx + dw; xp++) ^ /Users/jamestrigg/Documents/Arduino/libraries/TFT_eSPI/Extensions/Sprite.cpp:1160:39: error: 'dw' was not declared in this scope for (int32_t xp = dx; xp < dx + dw; xp++) ^

exit status 1

Compilation error: exit status 1