Intial commit

This commit is contained in:
jimmy committed 2020-12-11 10:17:19 +13:00
1 parent 9024442baa
commit 1c89ad2ea0
16 files changed
+900

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#include <avr/io.h>
#include <avr/interrupt.h>
#include "../src/usart.h"
#include <util/delay.h>
int main (void) {
DDRD |= (1<<PD3)|(1<<PD4)|(1<<PD5);
usart::init(9600);
for (;;) {// Loop forever
usart::put('A');
//printf("Hello");
PORTD ^= (1<<PD3)|(1<<PD4)|(1<<PD5);
_delay_ms(1000);
}
}