Home › Forums › Microcontrollers › PIC Microcontroller › Microsecond variable Delay in MikroC › Reply To: Microsecond variable Delay in MikroC
April 20, 2015 at 12:24 pm
#11240
Ligo George
Keymaster
Try like this :
switch(angle) { case 0 : PORTX.FX = 1; Delay_us(...); PORTX.FX = 0; Delay_us(...); break; case 1: PORTX.FX = 1; Delay_us(...); PORTX.FX = 0; Delay_us(...); break; }