A
adalah
Guest
Ciao a tutti ..
Ho ancora bisogno del tuo aiuto il mio codice in mikroC.
Citazione:# define iniziare porta.f4
# define diritto porta.f0
# define sinistra porta.f1void foward ();void main ()
(
Trisa = 0xff;
TRISB = 0;
TRISC = 0;
PORTC = 0;
TRISD = 0;
PORTD = 0;
ADCON1 = 10000000;if (inizio == 1)
(
foward ();
)
)foward nullo (void)
(do (
portd.f0 = 1;
delay_ms (100);
portd.f0 = 0;
delay_ms (100);
portc.f0 = 1;
delay_ms (2);
portc.f0 = 0;delay_ms (2000);
PORTC = 0;portc.f2 = 1;
delay_ms (1);
portc.f2 = 0;
delay_ms (2000);
PORTC = 0;portc.f0 = 1;
delay_ms (1);
portc.f0 = 0;delay_ms (2000);
PORTC = 0;portc.f4 = 1;
delay_ms (2);
portc.f4 = 0;delay_ms (2000);
PORTC = 0;portc.f0 = 1;
delay_us (1500);
portc.f0 = 0;delay_ms (2000);
PORTC = 0;portc.f2 = 1;
delay_ms (2);
portc.f2 = 0;
portc.f4 = 1;
delay_ms (1);
portc.f4 = 0;delay_ms (2000);
PORTC = 0
while (1)![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Ho ancora bisogno del tuo aiuto il mio codice in mikroC.
Citazione:# define iniziare porta.f4
# define diritto porta.f0
# define sinistra porta.f1void foward ();void main ()
(
Trisa = 0xff;
TRISB = 0;
TRISC = 0;
PORTC = 0;
TRISD = 0;
PORTD = 0;
ADCON1 = 10000000;if (inizio == 1)
(
foward ();
)
)foward nullo (void)
(do (
portd.f0 = 1;
delay_ms (100);
portd.f0 = 0;
delay_ms (100);
portc.f0 = 1;
delay_ms (2);
portc.f0 = 0;delay_ms (2000);
PORTC = 0;portc.f2 = 1;
delay_ms (1);
portc.f2 = 0;
delay_ms (2000);
PORTC = 0;portc.f0 = 1;
delay_ms (1);
portc.f0 = 0;delay_ms (2000);
PORTC = 0;portc.f4 = 1;
delay_ms (2);
portc.f4 = 0;delay_ms (2000);
PORTC = 0;portc.f0 = 1;
delay_us (1500);
portc.f0 = 0;delay_ms (2000);
PORTC = 0;portc.f2 = 1;
delay_ms (2);
portc.f2 = 0;
portc.f4 = 1;
delay_ms (1);
portc.f4 = 0;delay_ms (2000);
PORTC = 0