Nick-Inventor
Member
On this page https://www.pjrc.com/teensy/td_digital.html there is a list of pin names for the digital read and write, but not for Teensy4. I am trying to use pin 10 as a digital out using pinMode(PIN_xx, OUTPUT);.
Looking at the schematic, it looks like pin 10 is called D7, however in this code I get the error message 'PIN_D7' was not declared in this scope.
void setup() {
Serial.begin(9600); // USB is always 12 Mbit/sec
pinMode(PIN_D7, OUTPUT);
}
void loop()
{
{
for ( v = 0.0; v <= 1; v=v+0.00001) {
digitalWrite(PIN_D7, LOW);
}
}
}
Looking at the schematic, it looks like pin 10 is called D7, however in this code I get the error message 'PIN_D7' was not declared in this scope.
void setup() {
Serial.begin(9600); // USB is always 12 Mbit/sec
pinMode(PIN_D7, OUTPUT);
}
void loop()
{
{
for ( v = 0.0; v <= 1; v=v+0.00001) {
digitalWrite(PIN_D7, LOW);
}
}
}