Hi,
I am getting started with Teensy 3.0 . I have this program loaded to teensy :
When I run the application, only LED on pin 23 and 22 work , 20 and 21 don't blink at all , Could be problem with teensy or it's pins ?
Please advise .
Thank you
I am getting started with Teensy 3.0 . I have this program loaded to teensy :
Code:
int redPin = 23;
int greenPin = 22;
int testPin = 21;
int bluePin = 20;
// The setup() method runs once, when the sketch starts
void setup() {
// initialize the digitals pin as an outputs
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
pinMode(testPin, OUTPUT);
}
// the loop() method runs over and over again,
void loop()
{
digitalWrite(redPin, HIGH);
delay(500);
digitalWrite(greenPin, HIGH);
delay(500);
digitalWrite(bluePin, HIGH);
delay(500);
digitalWrite(testPin, HIGH);
delay(500);
digitalWrite(redPin, LOW);
delay(500);
digitalWrite(greenPin, LOW);
delay(500);
digitalWrite(bluePin, LOW);
delay(500);
}
When I run the application, only LED on pin 23 and 22 work , 20 and 21 don't blink at all , Could be problem with teensy or it's pins ?
Please advise .
Thank you