Hi,
i'd like to use Pin 14 as a output for specific pulses.
I'm able to get pin 12 and 13 to do this:
void setup() {
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
GPIO7_DR_SET = (1 << 1); // Set 12 to HIGH
GPIO7_DR_SET = (1 << 3); // Set pin 13 HIGH
}
void loop() {
GPIO7_DR_CLEAR = (1 << 1); // Set pin 12 LOW
GPIO7_DR_CLEAR = (1 << 3); //Set pin 13 HIGH
delay(10);
GPIO7_DR_SET = (1 << 1); // Set pin 12 HIGH
GPIO7_DR_SET = (1 << 3); // Set pin 13 HIGH
delay(10);
}
But any documentation on Pin 14 is wrong or does not work on my Teensy 4.0
Any idea?
BRs,
Sem0
i'd like to use Pin 14 as a output for specific pulses.
I'm able to get pin 12 and 13 to do this:
void setup() {
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
GPIO7_DR_SET = (1 << 1); // Set 12 to HIGH
GPIO7_DR_SET = (1 << 3); // Set pin 13 HIGH
}
void loop() {
GPIO7_DR_CLEAR = (1 << 1); // Set pin 12 LOW
GPIO7_DR_CLEAR = (1 << 3); //Set pin 13 HIGH
delay(10);
GPIO7_DR_SET = (1 << 1); // Set pin 12 HIGH
GPIO7_DR_SET = (1 << 3); // Set pin 13 HIGH
delay(10);
}
But any documentation on Pin 14 is wrong or does not work on my Teensy 4.0
Any idea?
BRs,
Sem0