Win 7 / Teensy LC
I installed the newest Arduino IDE 1.8.12 (probably from 1.8.10). Thereafter installing Teensy loader 1.51 (probably from 1.48). I left all of the library installs checked. Everything seemed to install without issues. I compiled and ran the Teensy blink program without any problem.
Several previously working programs using an 80 X 160 LCD [ST7735 controller], however, would no longer compile. Investigating further, it looks like several or all of the example programs in the 7335 folder will not compile giving the same error.
For example, trying to compile graphicstest.ino [Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ST7735 _t3\examples\graphicstest] will fail with the following:
__________________
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ST7735 _t3\ST7735_t3.cpp: In member function 'void ST7735_t3::readRect(int16_t, int16_t, int16_t, int16_t, uint16_t*)':
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ST7735 _t3\ST7735_t3.cpp:1238:6: error: '_use_fbtft' was not declared in this scope
if (_use_fbtft) {
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\ST7735 _t3\ST7735_t3.cpp:1239:30: error: '_pfbtft' was not declared in this scope
uint16_t * pfbPixel_row = &_pfbtft[ y*_width + x];
_________________
The error from line 1238 in ST7735_t3.cpp is in this function:
Code:
void ST7735_t3::readRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t *pcolors)
{
// Use our Origin.
x+=_originx;
y+=_originy;
//BUGBUG:: Should add some validation of X and Y
//#ifdef ENABLE_ST77XX_FRAMEBUFFER
if (_use_fbtft) {
uint16_t * pfbPixel_row = &_pfbtft[ y*_width + x];
for (;h>0; h--) {
uint16_t * pfbPixel = pfbPixel_row;
for (int i = 0 ;i < w; i++) {
*pcolors++ = *pfbPixel++;
}
pfbPixel_row += _width;
}
return;
}
//#endif
}
_use_fbtft is only declared here in ST7735_t3.h
Code:
#ifdef ENABLE_ST77XX_FRAMEBUFFER
// Add support for optional frame buffer
uint16_t *_pfbtft; // Optional Frame buffer
uint8_t _use_fbtft; // Are we in frame buffer mode?
uint16_t *_we_allocated_buffer; // We allocated the buffer;
uint32_t _count_pixels; // How big is the display in total pixels...
Is anyone else getting this error?