First off, I love using the Teensy 2.0 for my projects because of the small size and USB debug port. I'm in the process of switching to the Teensy 3.0 to take advantage of the higher speed for driving SPI based TFT displays.
Here's my problem:
I have an Adafruit 1.8" TFT (ST7735) and can compile and run their GFX library demo on a Teensy 2.0 with no problems. However, when I try to compile the same code on a Teensy 3.0 I get these errors:
...Adafruit_ST7735.cpp: In constructor 'Adafruit_ST7735::Adafruit_ST7735(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':
...Adafruit_ST7735.cpp:34:3: error: '_cs' was not declared in this scope
...Adafruit_ST7735.cpp:35:3: error: '_rs' was not declared in this scope
...Adafruit_ST7735.cpp:36:3: error: '_sid' was not declared in this scope
...Adafruit_ST7735.cpp:37:3: error: '_sclk' was not declared in this scope
...Adafruit_ST7735.cpp:38:3: error: '_rst' was not declared in this scope
...Adafruit_ST7735.cpp: In constructor 'Adafruit_ST7735::Adafruit_ST7735(uint8_t, uint8_t, uint8_t)':
...Adafruit_ST7735.cpp:47:3: error: '_cs' was not declared in this scope
...Adafruit_ST7735.cpp:48:3: error: '_rs' was not declared in this scope
...Adafruit_ST7735.cpp:49:3: error: '_rst' was not declared in this scope
...Adafruit_ST7735.cpp:51:3: error: '_sid' was not declared in this scope
...Adafruit_ST7735.cpp:51:11: error: '_sclk' was not declared in this scope
Again, I don't get these errors when compiling using the Teensy 2.0 as a target.
I would be grateful if someone could point me in the right direction to fix these Teensy 3.0 compile errors. My gut tells me someone here with deep c++ knowledge could easily fix this issue and save me a bunch of time tearing my hair out. I also believe that the speed of the Teensy 3.0 would provide a superior solution to driving these SPI based displays for things like animation.
I am running Arduino 1.0.4 with the Adafruit GFX library and associated display library for the ST7735. To recreate the compile problem run the "graphicstest.ino" program in the ST7735 sample directory.
Zip file attached.
Much thanks.
Here's my problem:
I have an Adafruit 1.8" TFT (ST7735) and can compile and run their GFX library demo on a Teensy 2.0 with no problems. However, when I try to compile the same code on a Teensy 3.0 I get these errors:
...Adafruit_ST7735.cpp: In constructor 'Adafruit_ST7735::Adafruit_ST7735(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':
...Adafruit_ST7735.cpp:34:3: error: '_cs' was not declared in this scope
...Adafruit_ST7735.cpp:35:3: error: '_rs' was not declared in this scope
...Adafruit_ST7735.cpp:36:3: error: '_sid' was not declared in this scope
...Adafruit_ST7735.cpp:37:3: error: '_sclk' was not declared in this scope
...Adafruit_ST7735.cpp:38:3: error: '_rst' was not declared in this scope
...Adafruit_ST7735.cpp: In constructor 'Adafruit_ST7735::Adafruit_ST7735(uint8_t, uint8_t, uint8_t)':
...Adafruit_ST7735.cpp:47:3: error: '_cs' was not declared in this scope
...Adafruit_ST7735.cpp:48:3: error: '_rs' was not declared in this scope
...Adafruit_ST7735.cpp:49:3: error: '_rst' was not declared in this scope
...Adafruit_ST7735.cpp:51:3: error: '_sid' was not declared in this scope
...Adafruit_ST7735.cpp:51:11: error: '_sclk' was not declared in this scope
Again, I don't get these errors when compiling using the Teensy 2.0 as a target.
I would be grateful if someone could point me in the right direction to fix these Teensy 3.0 compile errors. My gut tells me someone here with deep c++ knowledge could easily fix this issue and save me a bunch of time tearing my hair out. I also believe that the speed of the Teensy 3.0 would provide a superior solution to driving these SPI based displays for things like animation.
I am running Arduino 1.0.4 with the Adafruit GFX library and associated display library for the ST7735. To recreate the compile problem run the "graphicstest.ino" program in the ST7735 sample directory.
Zip file attached.
Much thanks.