Using this sketch as the blink code:
#include <FastDigitalIO.h>
void setup() {
FastDigitalIO< 13 > p;
p.mode( OUTPUT );
}
// the loop routine runs over and over again forever:
void loop() {
FastDigitalIO< 13 > p;
p.write( HIGH );
delay(1000); // wait for a second
p.write( LOW );
delay(1000); // wait for a second
}
I get values like ( taken off real bare minimum, not the one I posted above ):
UNO direct IO: 706, difference 240
Mega direct IO: 898, difference 232