Originally I thought of Muxing the LEDs that represents distance from wall so program is written to use two threads: One for LED display and another for the logic in reading data from sensor. Fairly simple one but useful.
Attached Files
- codingbug likes this