stepperControl.c
315 Bytes
#include <avr/io.h>
#include <util/delay.h>
int vitesseToDelay(int vitesse){
return ;
}
int main(void){
DDRC = 0x01;
PORTC |= 0x02; // Direction horraire ?
//PORTC &= 0xFD; // Direction anti-horraire ?
while(1){
// 1 Step
PORTC |= 0x01;
_delay_ms(10);
PORTC &= 0xFE;
_delay_ms(10);
}
return 0;
}