Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * first.c
- *
- * Created: 28.10.2019 12:25:37
- * Author : dspproject
- */
- // 14.7456 MHz
- #define F_CPU 14745600UL
- #include <avr/io.h>
- #include <avr/interrupt.h>
- #include <util/delay.h>
- int main(void)
- {
- /* Replace with your application code */
- DDRB |= 0xFF;
- int i;
- while (1)
- {
- for(i = 0; i < 7; i++)
- {
- PORTB = 1<<i;
- _delay_ms(200);
- //PORTB &= ~i;
- //_delay_ms(200);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement