pangolin_trouble
New member
Hi all. I'm sure this is a silly question, but I've been googling for a few days with no luck.
TL;DR: Is it possible to use pins 18 and 19 (on a Teensy 3.2 without the audio board) as normal digital OUTPUTs (like to light LEDs) if I've got the audio library in use? I know the audio board uses pins 18 and 19, and I'm assuming based on what I'm seeing that those pins won't work if the audio library's in use (even without the board). But I'd like confirmation.
This is the line that causes those pins to stop working:
Here's sample code:https://pastebin.com/raw/J5XYkpsD
Pins 18 and 19 work if the audio isn't enabled. They stop working as soon as it's enabled. My hunch is that the cause is super obvious to more experienced folks, but that's definitely not me at this point
Background: The basic idea is a tuner turning LEDs on when pitches are hit (so 12 LEDs, one for each note). The project works great, but I've got the TeensyView, which limits my pin options. (I know I could use the pins on the bottom, but I'd rather avoid that if I can.) 12 notes, 12 pins. TeensyView takes up the rest, so I need 18 and 19, if I can get 'em
Thanks!
TL;DR: Is it possible to use pins 18 and 19 (on a Teensy 3.2 without the audio board) as normal digital OUTPUTs (like to light LEDs) if I've got the audio library in use? I know the audio board uses pins 18 and 19, and I'm assuming based on what I'm seeing that those pins won't work if the audio library's in use (even without the board). But I'd like confirmation.
This is the line that causes those pins to stop working:
Code:
sgtl5000_1.enable();
Here's sample code:https://pastebin.com/raw/J5XYkpsD
Pins 18 and 19 work if the audio isn't enabled. They stop working as soon as it's enabled. My hunch is that the cause is super obvious to more experienced folks, but that's definitely not me at this point
Background: The basic idea is a tuner turning LEDs on when pitches are hit (so 12 LEDs, one for each note). The project works great, but I've got the TeensyView, which limits my pin options. (I know I could use the pins on the bottom, but I'd rather avoid that if I can.) 12 notes, 12 pins. TeensyView takes up the rest, so I need 18 and 19, if I can get 'em
Thanks!