Code for Sunrise Alarm Clock project HCDE 598: Physical Computing and Prototyping