Hello,
I'm working on an Arduino Mega board, trying to make it work with AS7.
I'm working on the following code:
DDRE |= 0b00110000; while(1) { PINE |= 0x00110000; _delay_ms(5); }
It make the GPIO 2 and 3 switching on every loop execution.
When compiling with Arduino IDE, no problem. But when compiling with AS7, the delay seems to be 10ms instead of the 5ms!
I also try to work on AS7, starting the project from the Arduino Sketch (so there is my application and ArduinoCore, and the init() function from wiring is called), but the behavior is the same: 10ms delay!
Something must be missing in the init... any idea what could be wrong?
Thank you
Antoine