hi. im trying to build a led cube 4x4x4 for starters to learn about how this things work. im making it with shift registers and an arduino uno.
im sorry if i am bad at explaining myself, im making each layer with 4x transistors on cathode and 4x transistors on anode. each transistor is going to be controlled by shift registers.(74hc575)
so in my code (i dont know if you can see it) i use the shiftOuf function. and the way i have written it now is int led1 = 0x01; //00000001(binary notation)
and so on. so when i need to use the led1 i will need to write
//ground latchPin and hold low for as long as you are transmitting
//move 'em out
shiftOut(dataPin, clockPin, MSBFIRST, led1 );
//return the latch pin high to signal chip that it
//no longer needs to listen for information
is it possible to make a function of this so i can just write: eksample : led1,ledA
? could not find any info i could wrap my head around so any help would be appreciated.
thanks in advance
markus_test.ino (12.2 KB)