After installing the Teensyduino Beta 2 (onto Arduino IDE v1.6.7, Win10-64b), I have a sketch for a color/touch-screen shield that no longer compiles for use on Arduino Uno R3.
First compile error I saw was related to "#define true 1" and "define false 0" in teensy wiring.h being reported by IDE (AVRISP) as being "redefined"; I commented out those lines 42 & 43 to eliminate that compile-time error.
Now I'm seeing another more complex compile error, as follows:
===================
Arduino: 1.6.7 (Windows 10), TD: 1.27-beta2, Board: "Arduino/Genuino Uno"
In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:33:0,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19,
from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,
from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:825:88: error: 'void digitalWrite(uint8_t, uint8_t)' was declared 'extern' and later 'static' [-fpermissive]
static inline void digitalWrite(uint8_t, uint8_t) __attribute__((always_inline, unused));
^
In file included from sketch\TFTpaint.ino.cpp:1:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:126:6: error: previous declaration of 'void digitalWrite(uint8_t, uint8_t)' [-fpermissive]
void digitalWrite(uint8_t, uint8_t);
^
In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:33:0,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19,
from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,
from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h: In function 'void digitalWrite(uint8_t, uint8_t)':
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:831:5: error: 'CORE_PIN0_PORTREG' was not declared in this scope
CORE_PIN0_PORTREG |= CORE_PIN0_BITMASK;
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:831:26: error: 'CORE_PIN0_BITMASK' was not declared in this scope
CORE_PIN0_PORTREG |= CORE_PIN0_BITMASK;
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:833:5: error: 'CORE_PIN1_PORTREG' was not declared in this scope
CORE_PIN1_PORTREG |= CORE_PIN1_BITMASK;
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:833:26: error: 'CORE_PIN1_BITMASK' was not declared in this scope
CORE_PIN1_PORTREG |= CORE_PIN1_BITMASK;
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:835:5: error: 'CORE_PIN2_PORTREG' was not declared in this scope
CORE_PIN2_PORTREG |= CORE_PIN2_BITMASK;
^
///////////// About 80,000 characters snipped out of error report here to allow posting on this forum without exceeding character limit; nearly all of those were CORE PINs and BITMASK variables not declared in scope ///////////
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:1750:18: error: 'COM1C1' was not declared in this scope
TCCR1A |= (1<<COM1C1);
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:1791:14: error: 'CORE_NUM_TOTAL_PINS' was not declared in this scope
if (pin < CORE_NUM_TOTAL_PINS) {
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h: At global scope:
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:1805:102: error: 'void shiftOut(uint8_t, uint8_t, uint8_t, uint8_t)' was declared 'extern' and later 'static' [-fpermissive]
static inline void shiftOut(uint8_t, uint8_t, uint8_t, uint8_t) __attribute__((always_inline, unused));
^
In file included from sketch\TFTpaint.ino.cpp:1:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:139:6: error: previous declaration of 'void shiftOut(uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val);
^
In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:33:0,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19,
from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,
from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:1823:95: error: 'uint8_t shiftIn(uint8_t, uint8_t, uint8_t)' was declared 'extern' and later 'static' [-fpermissive]
static inline uint8_t shiftIn(uint8_t, uint8_t, uint8_t) __attribute__((always_inline, unused));
^
In file included from sketch\TFTpaint.ino.cpp:1:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:140:9: error: previous declaration of 'uint8_t shiftIn(uint8_t, uint8_t, uint8_t)' [-fpermissive]
uint8_t shiftIn(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder);
^
In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:33:0,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19,
from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,
from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h: In function 'void analogReference(uint8_t)':
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:1849:48: error: 'void analogReference(uint8_t)' was declared 'extern' and later 'static' [-fpermissive]
static inline void analogReference(uint8_t mode)
^
In file included from sketch\TFTpaint.ino.cpp:1:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:129:6: error: previous declaration of 'void analogReference(uint8_t)' [-fpermissive]
void analogReference(uint8_t mode);
^
In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:33:0,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19,
from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,
from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h: At global scope:
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:1861:74: error: 'uint32_t millis()' was declared 'extern' and later 'static' [-fpermissive]
static inline uint32_t millis(void) __attribute__((always_inline, unused));
^
In file included from sketch\TFTpaint.ino.cpp:1:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:132:15: error: previous declaration of 'long unsigned int millis()' [-fpermissive]
unsigned long millis(void);
^
In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:33:0,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19,
from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,
from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:1880:74: error: 'uint32_t micros()' was declared 'extern' and later 'static' [-fpermissive]
static inline uint32_t micros(void) __attribute__((always_inline, unused));
^
In file included from sketch\TFTpaint.ino.cpp:1:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:133:15: error: previous declaration of 'long unsigned int micros()' [-fpermissive]
unsigned long micros(void);
^
In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:33:0,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19,
from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,
from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:
C:\Users\Nova\Documents\Arduino\libraries\teensy/core_pins.h:1889:85: error: 'void delayMicroseconds(uint16_t)' was declared 'extern' and later 'static' [-fpermissive]
static inline void delayMicroseconds(uint16_t) __attribute__((always_inline, unused));
^
In file included from sketch\TFTpaint.ino.cpp:1:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:135:6: error: previous declaration of 'void delayMicroseconds(unsigned int)' [-fpermissive]
void delayMicroseconds(unsigned int us);
^
In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19:0,
from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,
from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:
C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:96:17: error: conflicting declaration 'typedef uint8_t boolean'
typedef uint8_t boolean;
^
In file included from sketch\TFTpaint.ino.cpp:1:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:117:14: error: 'boolean' has a previous declaration as 'typedef bool boolean'
typedef bool boolean;
^
In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:19:0,
from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,
from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:
C:\Users\Nova\Documents\Arduino\libraries\teensy/wiring.h:102:59: error: declaration of C function 'void attachInterrupt(uint8_t, void (*)(), uint8_t)' conflicts with
void attachInterrupt(uint8_t, void (*)(void), uint8_t mode);
^
In file included from sketch\TFTpaint.ino.cpp:1:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:142:6: error: previous declaration 'void attachInterrupt(uint8_t, void (*)(), int)' here
void attachInterrupt(uint8_t, void (*)(void), int mode);
^
In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/Arduino.h:2:0,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/elapsedMillis.h:29,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:26,
from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,
from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:24:22: error: redefinition of 'const uint8_t SS'
const static uint8_t SS = CORE_SS0_PIN;
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:249:0,
from sketch\TFTpaint.ino.cpp:1:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:38:22: error: 'const uint8_t SS' previously defined here
static const uint8_t SS = 10;
^
In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/Arduino.h:2:0,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/elapsedMillis.h:29,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:26,
from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,
from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:24:29: error: 'CORE_SS0_PIN' was not declared in this scope
const static uint8_t SS = CORE_SS0_PIN;
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:25:22: error: redefinition of 'const uint8_t MOSI'
const static uint8_t MOSI = CORE_MOSI0_PIN;
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:249:0,
from sketch\TFTpaint.ino.cpp:1:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:39:22: error: 'const uint8_t MOSI' previously defined here
static const uint8_t MOSI = 11;
^
In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/Arduino.h:2:0,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/elapsedMillis.h:29,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:26,
from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,
from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:25:29: error: 'CORE_MOSI0_PIN' was not declared in this scope
const static uint8_t MOSI = CORE_MOSI0_PIN;
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:26:22: error: redefinition of 'const uint8_t MISO'
const static uint8_t MISO = CORE_MISO0_PIN;
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:249:0,
from sketch\TFTpaint.ino.cpp:1:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:40:22: error: 'const uint8_t MISO' previously defined here
static const uint8_t MISO = 12;
^
In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/Arduino.h:2:0,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/elapsedMillis.h:29,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:26,
from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,
from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:26:29: error: 'CORE_MISO0_PIN' was not declared in this scope
const static uint8_t MISO = CORE_MISO0_PIN;
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:27:22: error: redefinition of 'const uint8_t SCK'
const static uint8_t SCK = CORE_SCLK0_PIN;
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:249:0,
from sketch\TFTpaint.ino.cpp:1:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:41:22: error: 'const uint8_t SCK' previously defined here
static const uint8_t SCK = 13;
^
In file included from C:\Users\Nova\Documents\Arduino\libraries\teensy/Arduino.h:2:0,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/elapsedMillis.h:29,
from C:\Users\Nova\Documents\Arduino\libraries\teensy/WProgram.h:26,
from C:\Users\Nova\Documents\Arduino\libraries\TFTLCD/TFTLCD.h:2,
from C:\Users\Nova\Downloads\Arduino\TFTpaint\TFTpaint.ino:2:
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:27:29: error: 'CORE_SCLK0_PIN' was not declared in this scope
const static uint8_t SCK = CORE_SCLK0_PIN;
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:249:0,
from sketch\TFTpaint.ino.cpp:1:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:45:21: error: expected unqualified-id before numeric constant
#define LED_BUILTIN 13
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:28:22: note: in expansion of macro 'LED_BUILTIN'
const static uint8_t LED_BUILTIN = CORE_LED0_PIN;
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\TFTpaint.ino.cpp:1:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:171:32: error: expected unqualified-id before '__extension__'
#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:116:23: note: in expansion of macro 'digitalPinToTimer'
static inline uint8_t digitalPinToTimer(uint8_t) __attribute__((always_inline, unused));
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:171:32: error: expected ')' before '__extension__'
#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:116:23: note: in expansion of macro 'digitalPinToTimer'
static inline uint8_t digitalPinToTimer(uint8_t) __attribute__((always_inline, unused));
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:171:32: error: expected ')' before '__extension__'
#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:116:23: note: in expansion of macro 'digitalPinToTimer'
static inline uint8_t digitalPinToTimer(uint8_t) __attribute__((always_inline, unused));
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:171:32: error: expected unqualified-id before ')' token
#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:116:23: note: in expansion of macro 'digitalPinToTimer'
static inline uint8_t digitalPinToTimer(uint8_t) __attribute__((always_inline, unused));
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:171:32: error: expected unqualified-id before '__extension__'
#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:117:23: note: in expansion of macro 'digitalPinToTimer'
static inline uint8_t digitalPinToTimer(uint8_t pin)
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:171:32: error: expected ')' before '__extension__'
#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:117:23: note: in expansion of macro 'digitalPinToTimer'
static inline uint8_t digitalPinToTimer(uint8_t pin)
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:171:32: error: expected ')' before '__extension__'
#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:117:23: note: in expansion of macro 'digitalPinToTimer'
static inline uint8_t digitalPinToTimer(uint8_t pin)
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:171:32: error: expected unqualified-id before ')' token
#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) )
^
C:\Users\Nova\Documents\Arduino\libraries\teensy/pins_arduino.h:117:23: note: in expansion of macro 'digitalPinToTimer'
static inline uint8_t digitalPinToTimer(uint8_t pin)
^
exit status 1
Error compiling.
===================================
I tried to copy source code for the "TFTLCD" sketch being compiled, but this forum wouldn't permit it as the post became too long (I don't see a way to attach a file here).