Led cube 4x4x4 with arduino nano(IR control)


After finishing build led cube I mounted IR rechiver.

I mounted IR rechiver and i wtrited a arduino code for these, but I can not to swich or turn off animation while running.
I mention that columns conected to RX0 and TX1 is off, but if upload normal code(without IRercv) columns TX1 and RX0 work.

This is the arduino code

#include <IRremote.h>

// Define sensor pin
const int RECV_PIN = 3;
int layer[4]={A3,A2,A1,A0}; //initializing and declaring led layers
int column[16]={13,12,11,10,9,8,7,6,5,4,3,2,1,0,A5,A4}; //initializing and declaring led rows
int time = 250;

// Define IR Receiver and Results Objects
IRrecv irrecv(RECV_PIN);
decode_results results;
unsigned long key_value = 0;

void setup(){
for(int i = 0; i<16; i++)
pinMode(column*, OUTPUT); //setting rows to ouput*

  • }*

  • for(int i = 0; i<4; i++)*

  • {*
    _ pinMode(layer*, OUTPUT); //setting layers to output*_
    * }*
    * randomSeed(analogRead(10)); //seeding random for random pattern*
    * // Serial Monitor @ 9600 baud*
    * Serial.begin(9600);*
    * // Enable the IR Receiver*
    * irrecv.enableIRIn();*
    * irrecv.blink13(true);*

void loop(){
* if (irrecv.decode(&results)){*
* // Print Code in HEX*
* Serial.println(results.value,DEC);*
* switch(results.value){*
* case 551536695:*
* turnEverythingOff();*
* break;*
* case 551520375:*
* flickerOn();*
* turnEverythingOn();*
* break;*
* case 551504055:*
* turnEverythingOff();*
* turnEverythingOn();*
* break;*
* } *
* irrecv.resume();*

I did the project following the following instructions How to Make a LED Cube at Home - YouTube
You can help me with something?
Thank you very much!

You can help me with something?

You can help us by using code tags around your code to prevent it being turned into italics by the forum software and by posting your complete program

read this before posting a programming question

You have pin 3 declared as your IR receive pin but you also have it in your column[] array. You declare is as on output in setup() but irrecv turns it into an input.

You can't have it both ways...