Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

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

  1. #1

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

    On this page 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);

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Germany NRW
    Just write pinMode(10, OUTPUT)

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    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....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts