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

Thread: Teensy 4.0: Can I use Serial Pins 0 and 1?

  1. #1

    Teensy 4.0: Can I use Serial Pins 0 and 1?

    I've tried to use Pins 0 and 1 of the Teensy 4.0

    I can use Pin 1 but only as input, and Pin 0 only as Output (not as Input)

    But I can not use pinMode for these pins. Is there a specific reason?


    In the Arduino Teensy 4.0 Settings menu I can also not disable "Serial"

  2. #2
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    3,136
    Use Serial1.begin(115200) to use pins 0 and 1 for uart, no need for pinMode

  3. #3
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,377
    Quote Originally Posted by Utak View Post
    I've tried to use Pins 0 and 1 of the Teensy 4.0

    I can use Pin 1 but only as input, and Pin 0 only as Output (not as Input)

    But I can not use pinMode for these pins. Is there a specific reason?
    In the Teensy 4.0 the direction and pin number is fixed. I.e. you have to use pin 0 for input and pin 1 for output. In the Teensy 3.x systems, there are additional pins that can be used, but these also are fixed in terms of the pin number.

    Quote Originally Posted by Utak View Post
    I
    In the Arduino Teensy 4.0 Settings menu I can also not disable "Serial"
    Yes, because at present the other USB modes haven't been ported to the Teensy 4.0. Evidently this is at the top of Paul's priority list, so I imagine Teensydunion 1.49 will support it. Having the other modes would allow the Teensy to act as a USB keyboard/mount, or USB raw HID device (among other options).

  4. #4
    Thank you for the infos

Posting Permissions

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