Where is the list of pin names for Teensy4 for digital I/O ?

Status
Not open for further replies.
On this page https://www.pjrc.com/teensy/td_digital.html there is a list of pin names for the digital read and write, but not for Teensy4. I am trying to use pin 10 as a digital out using pinMode(PIN_xx, OUTPUT);.

Looking at the schematic, it looks like pin 10 is called D7, however in this code I get the error message 'PIN_D7' was not declared in this scope.



void setup() {
Serial.begin(9600); // USB is always 12 Mbit/sec
pinMode(PIN_D7, OUTPUT);
}

void loop()
{
{
for ( v = 0.0; v <= 1; v=v+0.00001) {
digitalWrite(PIN_D7, LOW);
}
}
}
 
Those names are a relic of the old 8 bit past. We don't use those names on any of the newer 32 bit boards. The pinout cards for the very old boards have 2 sides, one for Arduino numbers and the other for AVR gcc names. On newer boards, we use only the Arduino numbers.

That web page (and many other old pages) will be edited soon....
 
Status
Not open for further replies.
Back
Top