I tried a fresh install of Arduino 1.6.11 and Teensyduino 1.3.0 b4. I get errors trying to compile the example code when T3.5 or T3.6 is chosen. It works and runs on T3.2. I am at a loss as to how to proceed. Anyone have and suggestions.
Errors:
Arduino: 1.6.11 (Windows 7), TD: 1.30-beta4, Board: "Teensy 3.6, Serial, 180 MHz, US English"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries D:\Documents\Arduino\libraries -fqbn=teensy:avr:teensy36:usb=serial,speed=180opt,keys=en-us -ide-version=10611 -build-path C:\Users\GEORGE~1\AppData\Local\Temp\buildfa0dca03a37fee65eff087fd84d55fd8.tmp -warnings=none -verbose D:\Documents\Arduino\two_encoders\two_encoders.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries D:\Documents\Arduino\libraries -fqbn=teensy:avr:teensy36:usb=serial,speed=180opt,keys=en-us -ide-version=10611 -build-path C:\Users\GEORGE~1\AppData\Local\Temp\buildfa0dca03a37fee65eff087fd84d55fd8.tmp -warnings=none -verbose D:\Documents\Arduino\two_encoders\two_encoders.ino
Using board 'teensy36' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
Using core 'teensy3' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
Detecting libraries used...
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=130 -DARDUINO=10611 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3" "C:\Users\GEORGE~1\AppData\Local\Temp\buildfa0dca03a37fee65eff087fd84d55fd8.tmp\sketch\two_encoders.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=130 -DARDUINO=10611 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3" "-ID:\Documents\Arduino\libraries\Encoder" "C:\Users\GEORGE~1\AppData\Local\Temp\buildfa0dca03a37fee65eff087fd84d55fd8.tmp\sketch\two_encoders.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=130 -DARDUINO=10611 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3" "-ID:\Documents\Arduino\libraries\Encoder" "D:\Documents\Arduino\libraries\Encoder\Encoder.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=130 -DARDUINO=10611 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3" "-ID:\Documents\Arduino\libraries\Encoder" "C:\Users\GEORGE~1\AppData\Local\Temp\buildfa0dca03a37fee65eff087fd84d55fd8.tmp\sketch\two_encoders.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=130 -DARDUINO=10611 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3" "-ID:\Documents\Arduino\libraries\Encoder" "C:\Users\GEORGE~1\AppData\Local\Temp\buildfa0dca03a37fee65eff087fd84d55fd8.tmp\sketch\two_encoders.ino.cpp" -o "C:\Users\GEORGE~1\AppData\Local\Temp\buildfa0dca03a37fee65eff087fd84d55fd8.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\GEORGE~1\AppData\Local\Temp\buildfa0dca03a37fee65eff087fd84d55fd8.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -D__MK66FX1M0__ -DTEENSYDUINO=130 -DARDUINO=10611 -DF_CPU=180000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3" "-ID:\Documents\Arduino\libraries\Encoder" "C:\Users\GEORGE~1\AppData\Local\Temp\buildfa0dca03a37fee65eff087fd84d55fd8.tmp\sketch\two_encoders.ino.cpp" -o "C:\Users\GEORGE~1\AppData\Local\Temp\buildfa0dca03a37fee65eff087fd84d55fd8.tmp\sketch\two_encoders.ino.cpp.o"
In file included from D:\Documents\Arduino\two_encoders\two_encoders.ino:8:0:
D:\Documents\Arduino\libraries\Encoder/Encoder.h:61:11: error: 'IO_REG_TYPE' does not name a type
volatile IO_REG_TYPE * pin1_register;
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:62:11: error: 'IO_REG_TYPE' does not name a type
volatile IO_REG_TYPE * pin2_register;
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:63:2: error: 'IO_REG_TYPE' does not name a type
IO_REG_TYPE pin1_bitmask;
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:64:2: error: 'IO_REG_TYPE' does not name a type
IO_REG_TYPE pin2_bitmask;
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h: In constructor 'Encoder::Encoder(uint8_t, uint8_t)':
D:\Documents\Arduino\libraries\Encoder/Encoder.h:82:11: error: 'struct Encoder_internal_state_t' has no member named 'pin1_register'
encoder.pin1_register = PIN_TO_BASEREG(pin1);
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:82:46: error: 'PIN_TO_BASEREG' was not declared in this scope
encoder.pin1_register = PIN_TO_BASEREG(pin1);
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:83:11: error: 'struct Encoder_internal_state_t' has no member named 'pin1_bitmask'
encoder.pin1_bitmask = PIN_TO_BITMASK(pin1);
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:83:45: error: 'PIN_TO_BITMASK' was not declared in this scope
encoder.pin1_bitmask = PIN_TO_BITMASK(pin1);
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:84:11: error: 'struct Encoder_internal_state_t' has no member named 'pin2_register'
encoder.pin2_register = PIN_TO_BASEREG(pin2);
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:85:11: error: 'struct Encoder_internal_state_t' has no member named 'pin2_bitmask'
encoder.pin2_bitmask = PIN_TO_BITMASK(pin2);
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:92:31: error: 'struct Encoder_internal_state_t' has no member named 'pin1_register'
if (DIRECT_PIN_READ(encoder.pin1_register, encoder.pin1_bitmask)) s |= 1;
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:92:54: error: 'struct Encoder_internal_state_t' has no member named 'pin1_bitmask'
if (DIRECT_PIN_READ(encoder.pin1_register, encoder.pin1_bitmask)) s |= 1;
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:92:66: error: 'DIRECT_PIN_READ' was not declared in this scope
if (DIRECT_PIN_READ(encoder.pin1_register, encoder.pin1_bitmask)) s |= 1;
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:93:31: error: 'struct Encoder_internal_state_t' has no member named 'pin2_register'
if (DIRECT_PIN_READ(encoder.pin2_register, encoder.pin2_bitmask)) s |= 2;
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:93:54: error: 'struct Encoder_internal_state_t' has no member named 'pin2_bitmask'
if (DIRECT_PIN_READ(encoder.pin2_register, encoder.pin2_bitmask)) s |= 2;
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:93:66: error: 'DIRECT_PIN_READ' was not declared in this scope
if (DIRECT_PIN_READ(encoder.pin2_register, encoder.pin2_bitmask)) s |= 2;
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h: In static member function 'static void Encoder::update(Encoder_internal_state_t*)':
D:\Documents\Arduino\libraries\Encoder/Encoder.h:271:40: error: 'struct Encoder_internal_state_t' has no member named 'pin1_register'
uint8_t p1val = DIRECT_PIN_READ(arg->pin1_register, arg->pin1_bitmask);
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:271:60: error: 'struct Encoder_internal_state_t' has no member named 'pin1_bitmask'
uint8_t p1val = DIRECT_PIN_READ(arg->pin1_register, arg->pin1_bitmask);
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:271:72: error: 'DIRECT_PIN_READ' was not declared in this scope
uint8_t p1val = DIRECT_PIN_READ(arg->pin1_register, arg->pin1_bitmask);
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:272:40: error: 'struct Encoder_internal_state_t' has no member named 'pin2_register'
uint8_t p2val = DIRECT_PIN_READ(arg->pin2_register, arg->pin2_bitmask);
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:272:60: error: 'struct Encoder_internal_state_t' has no member named 'pin2_bitmask'
uint8_t p2val = DIRECT_PIN_READ(arg->pin2_register, arg->pin2_bitmask);
^
Using library Encoder in folder: D:\Documents\Arduino\libraries\Encoder (legacy)
Error compiling for board Teensy 3.6.
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:93:66: error: 'DIRECT_PIN_READ' was not declared in this scope
if (DIRECT_PIN_READ(encoder.pin2_register, encoder.pin2_bitmask)) s |= 2;
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h: In static member function 'static void Encoder::update(Encoder_internal_state_t*)':
D:\Documents\Arduino\libraries\Encoder/Encoder.h:271:40: error: 'struct Encoder_internal_state_t' has no member named 'pin1_register'
uint8_t p1val = DIRECT_PIN_READ(arg->pin1_register, arg->pin1_bitmask);
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:271:60: error: 'struct Encoder_internal_state_t' has no member named 'pin1_bitmask'
uint8_t p1val = DIRECT_PIN_READ(arg->pin1_register, arg->pin1_bitmask);
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:271:72: error: 'DIRECT_PIN_READ' was not declared in this scope
uint8_t p1val = DIRECT_PIN_READ(arg->pin1_register, arg->pin1_bitmask);
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:272:40: error: 'struct Encoder_internal_state_t' has no member named 'pin2_register'
uint8_t p2val = DIRECT_PIN_READ(arg->pin2_register, arg->pin2_bitmask);
^
D:\Documents\Arduino\libraries\Encoder/Encoder.h:272:60: error: 'struct Encoder_internal_state_t' has no member named 'pin2_bitmask'
uint8_t p2val = DIRECT_PIN_READ(arg->pin2_register, arg->pin2_bitmask);
^
Error compiling for board Teensy 3.6.