|
Gear Tooth Code
Can someone tell me why this code wouldn't work for Gear Tooth Sensor. To me it makes sense because its connected to digital input and it only gives 0 or 1 based on the voltage (5v).
int i = 0;
If (rc_dig_in01 == 1) //Gear Tooth Attached to dig_input 1
{
i++; // Gear Counter
printf("Gear counter=%d\r\n", i);
}
|