How was the voltage to these "light switches" controlled?
 
The voltage sent through
RAM and the CPU were originally controlled by Vacuum Tubes (Generation I), Transistors (Generator II) and later by transistors embedded in silicon chips.