Code in C for microcontroller. Project is an alternate implementation of Scratch Input (Originally done by Dr. Chris Harrison).