The 1/0 thing confused me for a while because 0 looks like a circuit (on), and 1 doesn't (0ff). I was also taking electrical engineering classes at the time, and the 1/0 true/false thing was already halfway arbitrary because of active-low pins, and even in software land, "return 0" could mean either true or false depending on the context.