alexdr5398
New member
Hello, I'm trying to get PWM output to work on 3 pins on my board. It wasn't working so I checked to see if digital write works on those pins and they did not. I ran the code below and discovered that it was only setting pins 12, 13, 14 and 15 to on my Teensy 3.2.
void setup() {
for (int i=0; i<24; i++)
pinMode(i, OUTPUT);
}
void loop()
{
for (int i=0; i<24; i++)
digitalWrite(i, HIGH);
while(1);
}
Is there any reason why PWM and digital output doesn't work for these pins (other than it's broken).
void setup() {
for (int i=0; i<24; i++)
pinMode(i, OUTPUT);
}
void loop()
{
for (int i=0; i<24; i++)
digitalWrite(i, HIGH);
while(1);
}
Is there any reason why PWM and digital output doesn't work for these pins (other than it's broken).