Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
void control(void) { rprintfInit(uart1SendByte); int reading; while(1) { delay_ms(50); reading = sharp_IR_interpret_GP2D12(a2dConvert8bit(9)); rprintf("Reading: %d", reading); }}
unsigned int GP2D12=128;void GP2D12_refresh(void);void control(void) //Run Hyperterminal Program { while(1) { delay_ms(50); rprintf("Sensor_Value=%d\r\n", GP2D12); //Print in Hyperterm. } }void GP2D15_refresh(void) //Sensor Refresh Subroutine { GP2D12=a2dConvert8bit(9); }
Make sure there are NO spaces in the file name.For example, do not do 'C:\Documents and Settings\User\Desktop . . .'