Some BASIC STAMP microcontroller code I wrote for my class. The code was run on a PIC16.