Hey there,
I got a Teensy 3.5 and I´m using the Arduino 1.8.8 IDE with Teensyduino, version 1.45 installed.
After reading some older posts, I decided to try out port manipulation as a simple way of detecting pressed buttons. Now this post has some helpful pin spreadsheets for the 3.5 / 3.6 attached: https://forum.pjrc.com/threads/34808-K66-Beta-Test?p=106291&viewfull=1#post106291
But first thing that I stumbled across: Referring to the spreadsheets, the led pin should be on pin C5. Mine is on pin B5. Additionally: I read the datasheets, stating that the Teensy 3.5 should have PORTA-PORTE available, but when I try to set some pins of PORTA or PORTE to input, it says that 'DDRA not declared in this scope'.
Are there any settings in the Arduino IDE I missed to configure? An update I should have/ should not have done? Thanks in advance for your help.
I got a Teensy 3.5 and I´m using the Arduino 1.8.8 IDE with Teensyduino, version 1.45 installed.
After reading some older posts, I decided to try out port manipulation as a simple way of detecting pressed buttons. Now this post has some helpful pin spreadsheets for the 3.5 / 3.6 attached: https://forum.pjrc.com/threads/34808-K66-Beta-Test?p=106291&viewfull=1#post106291
But first thing that I stumbled across: Referring to the spreadsheets, the led pin should be on pin C5. Mine is on pin B5. Additionally: I read the datasheets, stating that the Teensy 3.5 should have PORTA-PORTE available, but when I try to set some pins of PORTA or PORTE to input, it says that 'DDRA not declared in this scope'.
Are there any settings in the Arduino IDE I missed to configure? An update I should have/ should not have done? Thanks in advance for your help.
Code:
void Setup(){
Serial.begin(9600);
DDRA = B00000000;
}