Hello!
I've cooked a quick example, which sets bits on port C, pin 13 (LED):
Acording to Teensy 3 schematics:
http://www.pjrc.com/teensy/schematic.html
pin 13 should be on 5th bit of PORTC, unfortunately this doesn't work. What could be the problem?
I've cooked a quick example, which sets bits on port C, pin 13 (LED):
Code:
void setup() {
//set pins to output
pinMode(13, OUTPUT);
}
void loop(void) {
// digitalWrite(13, HIGH);
PORTC |= (1<<5);
delay(500);
// digitalWrite(13, LOW);
PORTC &= ~(1<<5);
delay(500);
}
Acording to Teensy 3 schematics:
http://www.pjrc.com/teensy/schematic.html
pin 13 should be on 5th bit of PORTC, unfortunately this doesn't work. What could be the problem?