//Problem: Connect a LED to port D bit 7. Glow MSB LED only (bit 7)
#include <stdint.h>
#define DPORT (*(volatile uint8_t*)0x2B)
#define DDDR (*(volatile uint8_t*)0x2A)
void setup() {
// put your setup code here, to run once:
DDDR |= (1<<7);
}
void delay(void) {
volatile uint32_t i;
for (i = 0; i < 1000000; i++);
}
void loop() {
// put your main code here, to run repeatedly:
DPORT &= ~(1<<7);
delay();
DPORT |= (1<<7);
delay();
}