Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define __AVR_ATmega8__
- #include <avr/io.h>
- int main() {
- DDRB = 0xFF;
- DDRD = 0x00;
- PORTB = 2;
- for (;;) {
- PORTB = PORTD ? 2 : 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement