Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * stepper.c
- *
- * Created: 07.10.2011 22:14:23
- * Author: nharghazz
- */
- #ifndef F_CPU
- #define F_CPU 16000000UL
- #endif
- #include <avr/io.h>
- #include <util/delay.h>
- int main(void)
- {
- DDRA=0xff;
- while(1)
- {
- PORTA = (1 << 0);
- _delay_ms(1);
- PORTA = (0 << 0);
- _delay_ms(1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment