TOF sensor based dimmer switch demonstration.
Build using platformio:
cd teensy_sketch platformio run -t upload
Turns the LED on the dev board on/off when an object (e.g. your hand) is quickly waved across the TOF sensor (but not too quickly).
Dimms the LED if an object hovers over the sensor. The dim amount is proportional to the object's distance. Closer is dimmer.