day00/ex01/main.c
Maix0 90c358409a feat(ex01): full ex01
This will also compile the avr-libc from source into /tmp/avr-libc
2026-04-13 13:55:22 +02:00

13 lines
192 B
C

#include <avr/io.h>
#define LED_PORT PORTB0
int main(void) {
// set pin to output
DDRB |= (_BV(LED_PORT));
// say to pull high the pin
PORTB |= (_BV(LED_PORT));
while (1)
;
}