Where do i find the schematic for 2x2x2 led cube?

and how do i control transistors through programming?

digitalWrite(baseResistor,HIGH);
digitalWrite(baseResistor,LOW);