Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * TESTBOARDV1_PCBWAY_LED_OUTPUTTEST.cpp
- *
- * Created: 25/03/2017 10:20:54
- * Author : toon
- */
- #ifndef F_CPU
- #define F_CPU 16000000UL // 16 MHz clock speed
- #endif
- #include <avr/io.h>
- #include <util/delay.h>
- #include <avr/interrupt.h>
- int main(void)
- {
- DDRB = (1<<PINB1);
- while(1)
- {
- PORTB = (1<<PINB1);
- _delay_ms(500);
- PORTB &= ~(1<<PINB1);
- _delay_ms(500);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement