Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Test vsech pinu mega2560 blink */
- #define F_CPU 16000000ul
- #include <avr/io.h>
- #include <util/delay.h>
- int main(void)
- {
- DDRA=0xff; DDRB=0xff; DDRC=0xff; DDRD=0xff; DDRE=0xff;
- DDRF=0xff; DDRG=0xff; DDRH=0xff; DDRJ=0xff; DDRK=0xff;
- DDRL=0xff;
- while (1)
- {
- PINA=0xff;PINB=0xff;PINC=0xff;PIND=0xff;PINE=0xff;
- PINF=0xff;PING=0xff;PINH=0xff;PINJ=0xff;PINK=0xff;
- PINL=0xff;
- _delay_ms(500);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement