#include <avr/io.h>
extern "C" uint8_t read_mem(uint16_t);
extern "C" void setupled();
extern "C" void blink();
long volatile i = 0;
int main(){
setupled();
while(1){
for(i = 0; i<500000; i++){ // About 2 sec dealy
}
blink();
}
}