Author Topic: Teensy 2++ Pin Question  (Read 1579 times)

0 Members and 1 Guest are viewing this topic.

Offline tedfs3

  • Thread Starter
  • Posts: 51
    • No Mercy Given
Teensy 2++ Pin Question
« on: Sat, 16 March 2019, 11:26:25 »
I was wondering if it's possible to mix LEDs with ports used for columns on the Teensy 2++ ? I know you can't mix rows and columns but am wondering if it's possible to mix LEDs in a port ?

Only need two LEDs for the design I'm working on, which opens up more pins for columns IF it's possible to mix LEDs in a column port.
Using all D pins as a port as an example: PD01 and PD02 for the LEDs but using PD04, PD05, PD06 and PD07 for columns.

Is it possible to mix LEDs in like this ? Hopefully so, that would simplify the design process on my end.

Offline BlindAssassin111

  • Posts: 1107
  • Location: Behind you
  • I design keyboards and stuff.
    • Viktus
Re: Teensy 2++ Pin Question
« Reply #1 on: Sat, 16 March 2019, 11:30:37 »
You don't have to dedicate ports to rows or columns, you can mix and match them as you please. There are a few pins that you don't want to use with rows/cols, PD6 I think may be the only one but I feel like there was a second one but can't confirm that atm.
« Last Edit: Sun, 17 March 2019, 15:23:20 by BlindAssassin111 »

Offline tedfs3

  • Thread Starter
  • Posts: 51
    • No Mercy Given
Re: Teensy 2++ Pin Question
« Reply #2 on: Sun, 17 March 2019, 14:24:24 »
The card included with the Teensy 2 ++ does show which pins are PWM. You are correct on PD6, as seen in the photo is says LED on 6 but I honestly have no idea what that means.


Offline BlindAssassin111

  • Posts: 1107
  • Location: Behind you
  • I design keyboards and stuff.
    • Viktus
Re: Teensy 2++ Pin Question
« Reply #3 on: Sun, 17 March 2019, 15:25:21 »
Okay to correct what I said before(been a while since I last worked with the teensy mcus) You don't want to use PD6 with a row or col as the on board LED(which is what LED on PD6 means) doesn't play nice with the matrix sensing method and can cause issues.

LEDs can be used on any pin, it doesn't have to be PWM unless you want to control the brightness of the LEDs.

EDIT: And you can use LEDs on PD6 as it will work just fine, I designed a board for the AT101 using the Teensy2.0 and had no choice as there weren't enough pins to avoid that and it worked without issue.
« Last Edit: Sun, 17 March 2019, 15:29:46 by BlindAssassin111 »

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
Re: Teensy 2++ Pin Question
« Reply #4 on: Mon, 18 March 2019, 09:48:21 »
See below for which pins are PWM :)

215556-0
« Last Edit: Mon, 18 March 2019, 10:00:40 by suicidal_orange »
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod