Update for Arduino 1.0 and modifications for HT1632C compatibility.