Toggle RF signal and LED every half second

This commit is contained in:
mandlm 2016-01-31 14:25:21 +01:00
parent 29c3daa029
commit 46d4d2ce69

View file

@ -1,18 +1,19 @@
/* #define F_CPU 9600000 / 8
* Sender.cpp
*
* Created: 31.01.2016 14:09:45
* Author : mandlm
*/
#include <avr/io.h> #include <avr/io.h>
#include <util/delay.h>
int main()
int main(void)
{ {
/* Replace with your application code */ DDRB |= (1 << PB4) | (1 << PB3);
while (1)
while (true)
{ {
PORTB |= (1 << PB3);
PORTB |= (1 << PB4);
_delay_ms(500);
PORTB &= ~(1 << PB3);
PORTB &= ~(1 << PB4);
_delay_ms(500);
} }
} }