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
avr
arduino_mega2560_blink.c
1
#include <avr/io.h>
2
#define F_CPU 16000000UL
3
#include <util/delay.h>
4
5
int
main(
void
) {
6
7
DDRB |= _BV(7);
8
9
while
(1) {
10
PORTB |= _BV(7);
11
_delay_ms(1000);
12
PORTB &= ~(_BV(7));
13
_delay_ms(1000);
14
}
15
return
0;
16
}
Generated by
1.10.0