void setup() {
// put your setup code here, to run once:
// int PE6;
// int PE7;
pinMode(PE6,OUTPUT);
pinMode(PE7,OUTPUT);
pinMode(LED_BUILTIN,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(PE6,HIGH);
digitalWrite(PE7,HIGH);
digitalWrite(LED_BUILTIN,HIGH);
//DDRE = DDRE | B11111100;
delay(500);
digitalWrite(PE6,LOW);
digitalWrite(PE7,LOW);
digitalWrite(LED_BUILTIN,LOW);
delay(500);
//DDRE = DDRE | B00000011;
}
Is it possible to control PE6 and PE7 per Arduino IDE? My code didn't give any errors (both PE* and DDRE ways). I even have the built-in LED blinking every half second. I know that these two port pins are not physically connected to the Arduino Mega 2560 in the schematic.
Maybe I'm not controlling it correctly or even measuring the pin right with the multimeter?