#include <avr/io.h>
#include <util/delay.h>
# define LED_PIN 5
#define BARB *((volatile byte*)0x24)
#define PINOIN *((volatile byte*)0x25)
void ledPinOn(){
PINOIN|= (1<<LED_PIN);
}
void ledPinOff(){
PINOIN &= ~(1<<LED_PIN);
}
void setup() {
// put your setup code here, to run once:
BARB |= (1<<LED_PIN);
}
void loop() {
// put your main code here, to run repeatedly:
for(long i =0;i<1000000;i++){
ledPinOn();
}
for(long j =0;j<1000000;j++){
ledPinOff();
}
}