Open v-benenati opened 2 years ago
Proposed solution, use the sys_tick global counter to keep track of rising edge and falling edge. If the time between edges is less than the timeout, then there is an object in front of the ultrasonic sensor.
Proposed solution, use the sys_tick global counter to keep track of rising edge and falling edge. If the time between edges is less than the timeout, then there is an object in front of the ultrasonic sensor.