I just upgraded to Arduino 1.06 and Teensyduino 1.22 from Arduino 1.05 and Teensyduino 1.20 which required uninstalling Arduino first. I had a sketch written which uses the ILI9341_t3 library which compiled and worked fine with Arduino 1.05 and Teensyduino 1.20. Now that I installed the new version, it won't compile. I also tried compiling the example programs that come with the library and got the same error. I'm using a Teensy 3.1 set to 72Mhz.
This is from the graphicstest example, but all of the example programs give this error. Anyone know what might be causing this and how to fix it? Thanks.
Code:
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 + Td: 1.22 (Windows 7), Board: "Teensy 3.1"
In file included from graphicstest.ino:18:0:
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h: In member function 'void ILI9341_t3::waitFifoNotFull()':
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h:183:9: error: 'SPI0' was not declared in this scope
sr = SPI0.SR;
^
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h: In member function 'void ILI9341_t3::waitFifoEmpty()':
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h:192:9: error: 'SPI0' was not declared in this scope
sr = SPI0.SR;
^
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h: In member function 'void ILI9341_t3::waitTransmitComplete()':
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h:198:12: error: 'SPI0' was not declared in this scope
while (!(SPI0.SR & SPI_SR_TCF)) ; // wait until final output done
^
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h: In member function 'void ILI9341_t3::writecommand_cont(uint8_t)':
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h:202:3: error: 'SPI0' was not declared in this scope
SPI0.PUSHR = c | (pcs_command << 16) | SPI_PUSHR_CTAS(0) | SPI_PUSHR_CONT;
^
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h: In member function 'void ILI9341_t3::writedata8_cont(uint8_t)':
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h:206:3: error: 'SPI0' was not declared in this scope
SPI0.PUSHR = c | (pcs_data << 16) | SPI_PUSHR_CTAS(0) | SPI_PUSHR_CONT;
^
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h: In member function 'void ILI9341_t3::writedata16_cont(uint16_t)':
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h:210:3: error: 'SPI0' was not declared in this scope
SPI0.PUSHR = d | (pcs_data << 16) | SPI_PUSHR_CTAS(1) | SPI_PUSHR_CONT;
^
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h: In member function 'void ILI9341_t3::writecommand_last(uint8_t)':
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h:215:3: error: 'SPI0' was not declared in this scope
SPI0.SR = SPI_SR_TCF;
^
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h: In member function 'void ILI9341_t3::writedata8_last(uint8_t)':
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h:221:3: error: 'SPI0' was not declared in this scope
SPI0.SR = SPI_SR_TCF;
^
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h: In member function 'void ILI9341_t3::writedata16_last(uint16_t)':
C:\Program Files (x86)\Arduino\libraries\ILI9341_t3/ILI9341_t3.h:227:3: error: 'SPI0' was not declared in this scope
SPI0.SR = SPI_SR_TCF;
^
This is from the graphicstest example, but all of the example programs give this error. Anyone know what might be causing this and how to fix it? Thanks.