Get the SoR Robotics Android App on Android Market for FREE. See this forum post for details.
0 Members and 1 Guest are viewing this topic.
//initialize some variablesint i=0;//Normal Operationvoid control(void) { PWM_Init_timer1_LED(8); //Set this PWM channel to 8bits PWM_timer1_On_LED(); //Turn on the PWM timer while(1) { while(i<255) //255 is LED off { PWM_timer1_Set_LED(i); delay_ms(10); i++; } while(i>175) //0 is LED on, I don't got to zero, else LED lingers on to long! { PWM_timer1_Set_LED(i); delay_ms(10); i--; } } }
Then reprogramming. then unplugging the USB and the 6V supply and waiting for about 30 seconds then replugging and reporgramming, no sign of life at all.
Started by dempuo Electronics
Started by emoseman Electronics
Started by rox2007 Software
Started by Measure for Measure Misc