Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <avr\io.h> // Most basic include files
- #include <avr\interrupt.h> // Add thenecessary ones
- #include <avr\signal.h> // here
- //#define F_CPU 11059200U
- #include <util\delay.h>
- int main(void) {
- DDRE = 0xff;
- DDRA = 0xff;
- PORTE = _BV(PE3);
- PORTA = 1;
- while(1) {
- _delay_ms(1000);
- PORTA = PORTA << 1 | PORTA >> 7;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement