Hello i’m a beginner with Arduino so if someone can help me great
I have build a 8x8x8 RGB led cube powered with a Arduino UNO or standalone atmega328P and everything works fine. The sketch for the cube is made by someone else and i did make some effects myself but the memory on the atmega328P got to small so i bought a Mega2560 because of the memory. The 25 shift registers (74HC595) are connected with 4 wires of the UNO pin 2 (latch), pin 4 (blanc), pin 11 (MOSI), and pin 13 (SCK).
I notice that on the MEGA2560 the MOSI pin is 51 and the SCK pin is 52 so i changed that in the sketch and the wires but the cube won’t work, it compiles/writes without errors, i can see that the program runs with Serial.print but some of the leds in the cube go on and stay on and it does nothing what it should do. So if someone have a suggestion
Attached is the code which work on the UNO ( with pin 2, 4, 11, 13)
A video of my 8x8x8 RGB LED Cube Build (long version)
_8x8x8_RGB_CubeV12.ino (14.7 KB)