Open this program in the mbed Compiler, where you can edit it and compile it for your hardware.
Download this program as .zip file.
This is the end gate portion of a pinewood derby timer that uses an mbed. It communicates via HTTP to a web server that is doing the racer control and race management. Still need to put all that code together into a package on the net.