pYro_65:
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
That sounds better.. if the basic initialisation code is a little bulky, BUT program code is then fairly efficient ,there is less to worry about than I thought. I have some code that ends up >50Kb on a Mega at the moment. Some of it won't easily transplant until libraries are sorted out, but it looks hopeful