ASCII Serial Com
Serial communication library between computers, microcontrollers, FPGAs, etc. Uses only ASCII. Not the most efficient protocol, but meant to be easy to read
Loading...
Searching...
No Matches
atmega4809_cnano_blink.c
1#include <avr/io.h>
2#define F_CPU 3333333UL // 20 MHz / 6
3#include <util/delay.h>
4
5// F5 is the yellow LED
6// F6 is the user switch
7
8int main(void) {
9
10 PORTF.DIRSET = _BV(5);
11
12 while (1) {
13 PORTF.OUTTGL = _BV(5);
14 _delay_ms(1000);
15 }
16 return 0;
17}