Build Your Own 4x4x4 RGB LED Cube

105,201

447

123

Introduction: Build Your Own 4x4x4 RGB LED Cube

About: Awesome Electronics Tutorials, Projects and How To´s

LED Cubes are awesome. The first one I created was a 8x8x8 blue led cube. It still works like a charm. But being able to display every colour in the spectrum is much more spectacular. Let's start with a small and simple 4x4x4 RGB LED Cube.

Step 1: Watch Part 1 of the Video Series!

As you might have noticed, part 1 concentrates on the cube itself and the case. No electronics yet. The video should already give you plenty of details. But I will give you a short list of parts that you will need to build the cube itself.

Step 2: Order the Parts for the Cube!

Here you can find a parts list with example seller (affiliate links):

Ebay:

RGB LEDs Common Anode: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Silvered Copper Wire (Bridge Wire):http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Solder: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Ribbon Cable:http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Amazon.de:

RGB LEDs Common Anode: http://amzn.to/1cjetjZ

http://amzn.to/1lHSJ48

Silvered Copper Wire (Bridge Wire):http://amzn.to/1cjeHaH

Solder: http://amzn.to/1lHSJ48

Ribbon Cable: http://amzn.to/1m8P3JA

Aliexpress:

RGB LEDs Common Anode: https://s.click.aliexpress.com/e/_dZ2unDY

Silvered Copper Wire (Bridge Wire): https://s.click.aliexpress.com/e/_d6ClzWi

Solder: https://s.click.aliexpress.com/e/_dTGclAw

Ribbon Cable: https://s.click.aliexpress.com/e/_dXkghb4

Step 3: You Finished the Cube and Case!

Congrats on your finished cube and case. It should now look a little bit like mine in the picture. Go ahead and test all connections with a power supply. If everything works fine you can go ahead and build the electronics in the next steps.

Step 4: Watch Part 2 of the Video Series!

The video gives you plenty of info on how to build the controller for the cube. In the next step I will give you the schematic for the circuit and the part list.

Step 5: Order the Parts for the Controller and Solder It!

Here you can find a parts list with example seller (affiliate links)

Ebay:

DC Jack:http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Switch:http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Potentiometer (10k):http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Arduino Nano:http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

TLC5940:http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Resistor Kit:http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Power Supply (5V, 2A):http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

IRF9540N P-Channel MOSFET:http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Capacitor Kit:http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Prototyping PCB: http://rover.ebay.com/rover/1/711-53200-19255-0/1?...

Amazon.de:

DC Jack:http://amzn.to/1Ed1hrt

Switch: http://amzn.to/1vi1UsA

Potentiometer (10k): http://amzn.to/1nRws1J

Arduino Nano: http://amzn.to/1d4H1w1

TLC5940: http://amzn.to/1rVmQZC

Resistor Kit: http://amzn.to/1gt9XPf

Power Supply (5V, 2A): http://amzn.to/1rUJuQN

Capacitor Kit: http://amzn.to/1yE71u3

Prototyping PCB: http://amzn.to/1rVpcI9

Aliexpress:

DC Jack: https://s.click.aliexpress.com/e/_d6cVZVl

Switch: https://s.click.aliexpress.com/e/_d9dxPD5

Potentiometer (10k): https://s.click.aliexpress.com/e/_dX83GAF

Arduino Nano: https://s.click.aliexpress.com/e/_dULoNXh

TLC5940: https://s.click.aliexpress.com/e/_d7bKqAI

Resistor Kit: https://s.click.aliexpress.com/e/_dTPpXjt

Power Supply (5V, 2A): https://s.click.aliexpress.com/e/_d7d5TO6

Capacitor Kit: https://s.click.aliexpress.com/e/_dU4FEsB

Prototyping PCB: https://s.click.aliexpress.com/e/_dXx2Zv5

Step 6: Upload the Arduino Code and Test the Cube!

Download the code for the LED Cube. This is already my updated version of the code which I showed in part 3 of the video series. Be sure to watch this part as well to get an idea how the code works.

Step 7: Watch Part 3 of the Video Series!

This time it is all about optimisation. You may get a better understanding of the code if you watch the video carefully.

Step 8: New Animations!

Here you can get some new animations which were created by a viewer.

Visit his channel here:

Step 9: Success!

You did it. You just finished your own 4x4x4 RGB LED Cube. Feel free to develope the code in more creative ways than I did. And feel free to share those new creations.

Feel free to check out my Youtube channel for more awesome projects.
https://www.youtube.com/user/greatscottlab

You can also follow me on Facebook, Twitter and Google+ for news about upcoming projects and behind the scenes informations.

https://twitter.com/GreatScottLab

https://www.facebook.com/greatscottlab

Featured Author Contest: Tarun Upadhyaya

Participated in the
Featured Author Contest: Tarun Upadhyaya

15 People Made This Project!

Recommendations

  • Clocks Speed Challenge

    Clocks Speed Challenge
  • Toys & Games Contest

    Toys & Games Contest
  • Big vs Small Challenge

    Big vs Small Challenge

123 Comments

0
leandrostachovski
leandrostachovski

Question 12 days ago on Introduction

Hi Scott!

I'm a bit new in the hole maker thing and was wondering if you think it's possible to make a 12x12x12 RBG cube with only one arduino and using the same ideia that you use here. Using the TLC's as drivers for the led's. Do you think it's better to divide the cube in 4x4x12 quadrants? Or do you think it's possible to use the TLC's in line and control an entire layer at a time? Because, if I'm doing a 12x12x12 I'll need 9 TLC's for each color, right?
Do you have any suggestions?
I know that's a lot of questions and I'd appreciate if you could give some light.
Thanks in advance.

0
wrighty.uk.gorl
wrighty.uk.gorl

2 months ago

When I compile the code given I get this error and I haven't a clue what it means?

I get electronics but i haven't a clue about Arduino code.

I get this error

Arduino: 1.8.13 (Mac OS X), Board: "Arduino Uno"
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino: In function 'void turnon(int*, int, int, int, int)':
FKQYYC5I92LSHL8:160:4: error: 'REDLEDs' was not declared in this scope
REDLEDs[liste[i]]=red;
^~~~~~~
FKQYYC5I92LSHL8:161:4: error: 'GREENLEDs' was not declared in this scope
GREENLEDs[liste[i]]=green;
^~~~~~~~~
FKQYYC5I92LSHL8:162:4: error: 'BLUELEDs' was not declared in this scope
BLUELEDs[liste[i]]=blue;
^~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino: In function 'void reset()':
FKQYYC5I92LSHL8:168:3: error: 'REDLEDs' was not declared in this scope
REDLEDs[p]=0;
^~~~~~~
FKQYYC5I92LSHL8:169:3: error: 'GREENLEDs' was not declared in this scope
GREENLEDs[p]=0;
^~~~~~~~~
FKQYYC5I92LSHL8:170:3: error: 'BLUELEDs' was not declared in this scope
BLUELEDs[p]=0;
^~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino: In function 'void getrand()':
FKQYYC5I92LSHL8:175:2: error: 'randred' was not declared in this scope
randred=random(0,1548);
^~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:175:2: note: suggested alternative: 'random'
randred=random(0,1548);
^~~~~~~
random
FKQYYC5I92LSHL8:176:2: error: 'randgreen' was not declared in this scope
randgreen=random(0,750);
^~~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:176:2: note: suggested alternative: 'randomSeed'
randgreen=random(0,750);
^~~~~~~~~
randomSeed
FKQYYC5I92LSHL8:177:2: error: 'randblue' was not declared in this scope
randblue=random(0,1250);
^~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:177:2: note: suggested alternative: 'random'
randblue=random(0,1250);
^~~~~~~~
random
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino: In function 'void all(int, int, int)':
FKQYYC5I92LSHL8:187:3: error: 'REDLEDs' was not declared in this scope
REDLEDs[p]=red;
^~~~~~~
FKQYYC5I92LSHL8:188:3: error: 'GREENLEDs' was not declared in this scope
GREENLEDs[p]=green;
^~~~~~~~~
FKQYYC5I92LSHL8:189:3: error: 'BLUELEDs' was not declared in this scope
BLUELEDs[p]=blue;
^~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino: In function 'void randomall(int, int, int)':
FKQYYC5I92LSHL8:196:3: error: 'REDLEDs' was not declared in this scope
REDLEDs[random(64)]=random(20, red);
^~~~~~~
FKQYYC5I92LSHL8:197:3: error: 'GREENLEDs' was not declared in this scope
GREENLEDs[random(64)]=random(20,green);
^~~~~~~~~
FKQYYC5I92LSHL8:198:3: error: 'BLUELEDs' was not declared in this scope
BLUELEDs[random(64)]=random(20,blue);
^~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino: In function 'void brightness()':
FKQYYC5I92LSHL8:204:2: error: 'potent' was not declared in this scope
potent=analogRead(Potentiometer); // use analogRead to set value for int bright from 0-1023
^~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:204:2: note: suggested alternative: 'fopen'
potent=analogRead(Potentiometer); // use analogRead to set value for int bright from 0-1023
^~~~~~
fopen
FKQYYC5I92LSHL8:204:20: error: 'Potentiometer' was not declared in this scope
potent=analogRead(Potentiometer); // use analogRead to set value for int bright from 0-1023
^~~~~~~~~~~~~
FKQYYC5I92LSHL8:205:2: error: 'factor' was not declared in this scope
factor=map(potent,0,1023,0,4095); // convert 10 bit value(0-1023) from analogRead into 12 bit value(0-4095) for TLC5940
^~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:205:2: note: suggested alternative: 'ferror'
factor=map(potent,0,1023,0,4095); // convert 10 bit value(0-1023) from analogRead into 12 bit value(0-4095) for TLC5940
^~~~~~
ferror
FKQYYC5I92LSHL8:206:2: error: 'brightr' was not declared in this scope
brightr=factor*0.99;
^~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:206:2: note: suggested alternative: 'brightness'
brightr=factor*0.99;
^~~~~~~
brightness
FKQYYC5I92LSHL8:207:2: error: 'brightb' was not declared in this scope
brightb=factor*0.90;
^~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:207:2: note: suggested alternative: 'brightness'
brightb=factor*0.90;
^~~~~~~
brightness
FKQYYC5I92LSHL8:208:2: error: 'brightg' was not declared in this scope
brightg=factor*0.70;
^~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:208:2: note: suggested alternative: 'brightness'
brightg=factor*0.70;
^~~~~~~
brightness
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino: In function 'void CubeUpdate(int)':
FKQYYC5I92LSHL8:218:5: error: 'Tlc' was not declared in this scope
Tlc.set(AchR, REDLEDs[0]); // set AaR brightness to AchR OUTPUT(OUTPUT 0); first TLC5940
^~~
FKQYYC5I92LSHL8:218:13: error: 'AchR' was not declared in this scope
Tlc.set(AchR, REDLEDs[0]); // set AaR brightness to AchR OUTPUT(OUTPUT 0); first TLC5940
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:218:13: note: suggested alternative: 'ACSR'
Tlc.set(AchR, REDLEDs[0]); // set AaR brightness to AchR OUTPUT(OUTPUT 0); first TLC5940
^~~~
ACSR
FKQYYC5I92LSHL8:218:19: error: 'REDLEDs' was not declared in this scope
Tlc.set(AchR, REDLEDs[0]); // set AaR brightness to AchR OUTPUT(OUTPUT 0); first TLC5940
^~~~~~~
FKQYYC5I92LSHL8:219:13: error: 'BchR' was not declared in this scope
Tlc.set(BchR, REDLEDs[1]); // set BaR brightness to BchR OUTPUT(OUTPUT 1);
^~~~
FKQYYC5I92LSHL8:220:13: error: 'CchR' was not declared in this scope
Tlc.set(CchR, REDLEDs[2]); // set CaR brightness to CchR OUTPUT(OUTPUT 2);
^~~~
FKQYYC5I92LSHL8:221:13: error: 'DchR' was not declared in this scope
Tlc.set(DchR, REDLEDs[3]); // set DaR brightness to DchR OUTPUT(OUTPUT 3);
^~~~
FKQYYC5I92LSHL8:222:13: error: 'EchR' was not declared in this scope
Tlc.set(EchR, REDLEDs[4]); // set EaR brightness to EchR OUTPUT(OUTPUT 4);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:222:13: note: suggested alternative: 'EECR'
Tlc.set(EchR, REDLEDs[4]); // set EaR brightness to EchR OUTPUT(OUTPUT 4);
^~~~
EECR
FKQYYC5I92LSHL8:223:13: error: 'FchR' was not declared in this scope
Tlc.set(FchR, REDLEDs[5]); // set FaR brightness to FchR OUTPUT(OUTPUT 5);
^~~~
FKQYYC5I92LSHL8:224:13: error: 'GchR' was not declared in this scope
Tlc.set(GchR, REDLEDs[6]); // set GaR brightness to GchR OUTPUT(OUTPUT 6);
^~~~
FKQYYC5I92LSHL8:225:13: error: 'HchR' was not declared in this scope
Tlc.set(HchR, REDLEDs[7]); // set HaR brightness to HchR OUTPUT(OUTPUT 7);
^~~~
FKQYYC5I92LSHL8:226:13: error: 'IchR' was not declared in this scope
Tlc.set(IchR, REDLEDs[8]); // set IaR brightness to IchR OUTPUT(OUTPUT 8);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:226:13: note: suggested alternative: 'ISR'
Tlc.set(IchR, REDLEDs[8]); // set IaR brightness to IchR OUTPUT(OUTPUT 8);
^~~~
ISR
FKQYYC5I92LSHL8:227:13: error: 'JchR' was not declared in this scope
Tlc.set(JchR, REDLEDs[9]); // set JaR brightness to JchR OUTPUT(OUTPUT 9);
^~~~
FKQYYC5I92LSHL8:228:13: error: 'KchR' was not declared in this scope
Tlc.set(KchR, REDLEDs[10]); // set KaR brightness to KchR OUTPUT(OUTPUT 10);
^~~~
FKQYYC5I92LSHL8:229:13: error: 'LchR' was not declared in this scope
Tlc.set(LchR, REDLEDs[11]); // set LaR brightness to LchR OUTPUT(OUTPUT 11);
^~~~
FKQYYC5I92LSHL8:230:13: error: 'MchR' was not declared in this scope
Tlc.set(MchR, REDLEDs[12]); // set MaR brightness to MchR OUTPUT(OUTPUT 12);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:230:13: note: suggested alternative: 'MSTR'
Tlc.set(MchR, REDLEDs[12]); // set MaR brightness to MchR OUTPUT(OUTPUT 12);
^~~~
MSTR
FKQYYC5I92LSHL8:231:13: error: 'NchR' was not declared in this scope
Tlc.set(NchR, REDLEDs[13]); // set NaR brightness to NchR OUTPUT(OUTPUT 13);
^~~~
FKQYYC5I92LSHL8:232:13: error: 'OchR' was not declared in this scope
Tlc.set(OchR, REDLEDs[14]); // set OaR brightness to OchR OUTPUT(OUTPUT 14);
^~~~
FKQYYC5I92LSHL8:233:13: error: 'PchR' was not declared in this scope
Tlc.set(PchR, REDLEDs[15]); // set PaR brightness to PchR OUTPUT(OUTPUT 15);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:233:13: note: suggested alternative: 'PRR'
Tlc.set(PchR, REDLEDs[15]); // set PaR brightness to PchR OUTPUT(OUTPUT 15);
^~~~
PRR
FKQYYC5I92LSHL8:234:13: error: 'AchG' was not declared in this scope
Tlc.set(AchG, GREENLEDs[0]); // set AaG brightness to AchG OUTPUT(OUTPUT 0); second TLC5940
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:234:13: note: suggested alternative: 'ACBG'
Tlc.set(AchG, GREENLEDs[0]); // set AaG brightness to AchG OUTPUT(OUTPUT 0); second TLC5940
^~~~
ACBG
FKQYYC5I92LSHL8:234:19: error: 'GREENLEDs' was not declared in this scope
Tlc.set(AchG, GREENLEDs[0]); // set AaG brightness to AchG OUTPUT(OUTPUT 0); second TLC5940
^~~~~~~~~
FKQYYC5I92LSHL8:235:13: error: 'BchG' was not declared in this scope
Tlc.set(BchG, GREENLEDs[1]); // set BaG brightness to BchG OUTPUT(OUTPUT 1);
^~~~
FKQYYC5I92LSHL8:236:13: error: 'CchG' was not declared in this scope
Tlc.set(CchG, GREENLEDs[2]); // set CaG brightness to CchG OUTPUT(OUTPUT 2);
^~~~
FKQYYC5I92LSHL8:237:13: error: 'DchG' was not declared in this scope
Tlc.set(DchG, GREENLEDs[3]); // set DaG brightness to DchG OUTPUT(OUTPUT 3);
^~~~
FKQYYC5I92LSHL8:238:13: error: 'EchG' was not declared in this scope
Tlc.set(EchG, GREENLEDs[4]); // set EaG brightness to EchG OUTPUT(OUTPUT 4);
^~~~
FKQYYC5I92LSHL8:239:13: error: 'FchG' was not declared in this scope
Tlc.set(FchG, GREENLEDs[5]); // set FaG brightness to FchG OUTPUT(OUTPUT 5);
^~~~
FKQYYC5I92LSHL8:240:13: error: 'GchG' was not declared in this scope
Tlc.set(GchG, GREENLEDs[6]); // set GaG brightness to GchG OUTPUT(OUTPUT 6);
^~~~
FKQYYC5I92LSHL8:241:13: error: 'HchG' was not declared in this scope
Tlc.set(HchG, GREENLEDs[7]); // set HaG brightness to HchG OUTPUT(OUTPUT 7);
^~~~
FKQYYC5I92LSHL8:242:13: error: 'IchG' was not declared in this scope
Tlc.set(IchG, GREENLEDs[8]); // set IaG brightness to IchG OUTPUT(OUTPUT 8);
^~~~
FKQYYC5I92LSHL8:243:13: error: 'JchG' was not declared in this scope
Tlc.set(JchG, GREENLEDs[9]); // set JaG brightness to JchG OUTPUT(OUTPUT 9);
^~~~
FKQYYC5I92LSHL8:244:13: error: 'KchG' was not declared in this scope
Tlc.set(KchG, GREENLEDs[10]); // set KaG brightness to KchG OUTPUT(OUTPUT 10);
^~~~
FKQYYC5I92LSHL8:245:13: error: 'LchG' was not declared in this scope
Tlc.set(LchG, GREENLEDs[11]); // set LaG brightness to LchG OUTPUT(OUTPUT 11);
^~~~
FKQYYC5I92LSHL8:246:13: error: 'MchG' was not declared in this scope
Tlc.set(MchG, GREENLEDs[12]); // set MaG brightness to MchG OUTPUT(OUTPUT 12);
^~~~
FKQYYC5I92LSHL8:247:13: error: 'NchG' was not declared in this scope
Tlc.set(NchG, GREENLEDs[13]); // set NaG brightness to NchG OUTPUT(OUTPUT 13);
^~~~
FKQYYC5I92LSHL8:248:13: error: 'OchG' was not declared in this scope
Tlc.set(OchG, GREENLEDs[14]); // set OaG brightness to OchG OUTPUT(OUTPUT 14);
^~~~
FKQYYC5I92LSHL8:249:13: error: 'PchG' was not declared in this scope
Tlc.set(PchG, GREENLEDs[15]); // set PaG brightness to PchG OUTPUT(OUTPUT 15);
^~~~
FKQYYC5I92LSHL8:250:13: error: 'AchB' was not declared in this scope
Tlc.set(AchB, BLUELEDs[0]); // set AaB brightness to AchB OUTPUT(OUTPUT 0); third TLC5940
^~~~
FKQYYC5I92LSHL8:250:19: error: 'BLUELEDs' was not declared in this scope
Tlc.set(AchB, BLUELEDs[0]); // set AaB brightness to AchB OUTPUT(OUTPUT 0); third TLC5940
^~~~~~~~
FKQYYC5I92LSHL8:251:13: error: 'BchB' was not declared in this scope
Tlc.set(BchB, BLUELEDs[1]); // set BaB brightness to BchB OUTPUT(OUTPUT 1);
^~~~
FKQYYC5I92LSHL8:252:13: error: 'CchB' was not declared in this scope
Tlc.set(CchB, BLUELEDs[2]); // set CaB brightness to CchB OUTPUT(OUTPUT 2);
^~~~
FKQYYC5I92LSHL8:253:13: error: 'DchB' was not declared in this scope
Tlc.set(DchB, BLUELEDs[3]); // set DaB brightness to DchB OUTPUT(OUTPUT 3);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:253:13: note: suggested alternative: 'DDRB'
Tlc.set(DchB, BLUELEDs[3]); // set DaB brightness to DchB OUTPUT(OUTPUT 3);
^~~~
DDRB
FKQYYC5I92LSHL8:254:13: error: 'EchB' was not declared in this scope
Tlc.set(EchB, BLUELEDs[4]); // set EaB brightness to EchB OUTPUT(OUTPUT 4);
^~~~
FKQYYC5I92LSHL8:255:13: error: 'FchB' was not declared in this scope
Tlc.set(FchB, BLUELEDs[5]); // set FaB brightness to FchB OUTPUT(OUTPUT 5);
^~~~
FKQYYC5I92LSHL8:256:13: error: 'GchB' was not declared in this scope
Tlc.set(GchB, BLUELEDs[6]); // set GaB brightness to GchB OUTPUT(OUTPUT 6);
^~~~
FKQYYC5I92LSHL8:257:13: error: 'HchB' was not declared in this scope
Tlc.set(HchB, BLUELEDs[7]); // set HaB brightness to HchB OUTPUT(OUTPUT 7);
^~~~
FKQYYC5I92LSHL8:258:13: error: 'IchB' was not declared in this scope
Tlc.set(IchB, BLUELEDs[8]); // set IaB brightness to IchB OUTPUT(OUTPUT 8);
^~~~
FKQYYC5I92LSHL8:259:13: error: 'JchB' was not declared in this scope
Tlc.set(JchB, BLUELEDs[9]); // set JaB brightness to JchB OUTPUT(OUTPUT 9);
^~~~
FKQYYC5I92LSHL8:260:13: error: 'KchB' was not declared in this scope
Tlc.set(KchB, BLUELEDs[10]); // set KaB brightness to KchB OUTPUT(OUTPUT 10);
^~~~
FKQYYC5I92LSHL8:261:13: error: 'LchB' was not declared in this scope
Tlc.set(LchB, BLUELEDs[11]); // set LaB brightness to LchB OUTPUT(OUTPUT 11);
^~~~
FKQYYC5I92LSHL8:262:13: error: 'MchB' was not declared in this scope
Tlc.set(MchB, BLUELEDs[12]); // set MaB brightness to MchB OUTPUT(OUTPUT 12);
^~~~
FKQYYC5I92LSHL8:263:13: error: 'NchB' was not declared in this scope
Tlc.set(NchB, BLUELEDs[13]); // set NaB brightness to NchB OUTPUT(OUTPUT 13);
^~~~
FKQYYC5I92LSHL8:264:13: error: 'OchB' was not declared in this scope
Tlc.set(OchB, BLUELEDs[14]); // set OaB brightness to OchB OUTPUT(OUTPUT 14);
^~~~
FKQYYC5I92LSHL8:265:13: error: 'PchB' was not declared in this scope
Tlc.set(PchB, BLUELEDs[15]); // set PaB brightness to PchB OUTPUT(OUTPUT 15);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:265:13: note: suggested alternative: 'PINB'
Tlc.set(PchB, BLUELEDs[15]); // set PaB brightness to PchB OUTPUT(OUTPUT 15);
^~~~
PINB
FKQYYC5I92LSHL8:268:16: error: 'LayerOne' was not declared in this scope
digitalWrite(LayerOne, HIGH); // sets LayerOne (pin A0) High (not active)--> Layer one OFF
^~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:268:16: note: suggested alternative: 'layerno'
digitalWrite(LayerOne, HIGH); // sets LayerOne (pin A0) High (not active)--> Layer one OFF
^~~~~~~~
layerno
FKQYYC5I92LSHL8:269:16: error: 'LayerTwo' was not declared in this scope
digitalWrite(LayerTwo, HIGH); // sets LayerTwo (pin A1) High (not active)--> Layer two OFF
^~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:269:16: note: suggested alternative: 'layerno'
digitalWrite(LayerTwo, HIGH); // sets LayerTwo (pin A1) High (not active)--> Layer two OFF
^~~~~~~~
layerno
FKQYYC5I92LSHL8:270:16: error: 'LayerThree' was not declared in this scope
digitalWrite(LayerThree, HIGH); // sets LayerThree (pin A2) High (not active)--> Layer three OFF
^~~~~~~~~~
FKQYYC5I92LSHL8:271:16: error: 'LayerFour' was not declared in this scope
digitalWrite(LayerFour, HIGH); // sets LayerFour (pin A3) High (not active)--> Layer four OFF
^~~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:271:16: note: suggested alternative: 'layerno'
digitalWrite(LayerFour, HIGH); // sets LayerFour (pin A3) High (not active)--> Layer four OFF
^~~~~~~~~
layerno
FKQYYC5I92LSHL8:281:5: error: 'Tlc' was not declared in this scope
Tlc.set(AchR, REDLEDs[16]); // same as if(layerno == 1) but we use different brightness, so we define LEDs in the second layer
^~~
FKQYYC5I92LSHL8:281:13: error: 'AchR' was not declared in this scope
Tlc.set(AchR, REDLEDs[16]); // same as if(layerno == 1) but we use different brightness, so we define LEDs in the second layer
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:281:13: note: suggested alternative: 'ACSR'
Tlc.set(AchR, REDLEDs[16]); // same as if(layerno == 1) but we use different brightness, so we define LEDs in the second layer
^~~~
ACSR
FKQYYC5I92LSHL8:281:19: error: 'REDLEDs' was not declared in this scope
Tlc.set(AchR, REDLEDs[16]); // same as if(layerno == 1) but we use different brightness, so we define LEDs in the second layer
^~~~~~~
FKQYYC5I92LSHL8:282:13: error: 'BchR' was not declared in this scope
Tlc.set(BchR, REDLEDs[17]);
^~~~
FKQYYC5I92LSHL8:283:13: error: 'CchR' was not declared in this scope
Tlc.set(CchR, REDLEDs[18]);
^~~~
FKQYYC5I92LSHL8:284:13: error: 'DchR' was not declared in this scope
Tlc.set(DchR, REDLEDs[19]);
^~~~
FKQYYC5I92LSHL8:285:13: error: 'EchR' was not declared in this scope
Tlc.set(EchR, REDLEDs[20]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:285:13: note: suggested alternative: 'EECR'
Tlc.set(EchR, REDLEDs[20]);
^~~~
EECR
FKQYYC5I92LSHL8:286:13: error: 'FchR' was not declared in this scope
Tlc.set(FchR, REDLEDs[21]);
^~~~
FKQYYC5I92LSHL8:287:13: error: 'GchR' was not declared in this scope
Tlc.set(GchR, REDLEDs[22]);
^~~~
FKQYYC5I92LSHL8:288:13: error: 'HchR' was not declared in this scope
Tlc.set(HchR, REDLEDs[23]);
^~~~
FKQYYC5I92LSHL8:289:13: error: 'IchR' was not declared in this scope
Tlc.set(IchR, REDLEDs[24]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:289:13: note: suggested alternative: 'ISR'
Tlc.set(IchR, REDLEDs[24]);
^~~~
ISR
FKQYYC5I92LSHL8:290:13: error: 'JchR' was not declared in this scope
Tlc.set(JchR, REDLEDs[25]);
^~~~
FKQYYC5I92LSHL8:291:13: error: 'KchR' was not declared in this scope
Tlc.set(KchR, REDLEDs[26]);
^~~~
FKQYYC5I92LSHL8:292:13: error: 'LchR' was not declared in this scope
Tlc.set(LchR, REDLEDs[27]);
^~~~
FKQYYC5I92LSHL8:293:13: error: 'MchR' was not declared in this scope
Tlc.set(MchR, REDLEDs[28]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:293:13: note: suggested alternative: 'MSTR'
Tlc.set(MchR, REDLEDs[28]);
^~~~
MSTR
FKQYYC5I92LSHL8:294:13: error: 'NchR' was not declared in this scope
Tlc.set(NchR, REDLEDs[29]);
^~~~
FKQYYC5I92LSHL8:295:13: error: 'OchR' was not declared in this scope
Tlc.set(OchR, REDLEDs[30]);
^~~~
FKQYYC5I92LSHL8:296:13: error: 'PchR' was not declared in this scope
Tlc.set(PchR, REDLEDs[31]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:296:13: note: suggested alternative: 'PRR'
Tlc.set(PchR, REDLEDs[31]);
^~~~
PRR
FKQYYC5I92LSHL8:297:13: error: 'AchG' was not declared in this scope
Tlc.set(AchG, GREENLEDs[16]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:297:13: note: suggested alternative: 'ACBG'
Tlc.set(AchG, GREENLEDs[16]);
^~~~
ACBG
FKQYYC5I92LSHL8:297:19: error: 'GREENLEDs' was not declared in this scope
Tlc.set(AchG, GREENLEDs[16]);
^~~~~~~~~
FKQYYC5I92LSHL8:298:13: error: 'BchG' was not declared in this scope
Tlc.set(BchG, GREENLEDs[17]);
^~~~
FKQYYC5I92LSHL8:299:13: error: 'CchG' was not declared in this scope
Tlc.set(CchG, GREENLEDs[18]);
^~~~
FKQYYC5I92LSHL8:300:13: error: 'DchG' was not declared in this scope
Tlc.set(DchG, GREENLEDs[19]);
^~~~
FKQYYC5I92LSHL8:301:13: error: 'EchG' was not declared in this scope
Tlc.set(EchG, GREENLEDs[20]);
^~~~
FKQYYC5I92LSHL8:302:13: error: 'FchG' was not declared in this scope
Tlc.set(FchG, GREENLEDs[21]);
^~~~
FKQYYC5I92LSHL8:303:13: error: 'GchG' was not declared in this scope
Tlc.set(GchG, GREENLEDs[22]);
^~~~
FKQYYC5I92LSHL8:304:13: error: 'HchG' was not declared in this scope
Tlc.set(HchG, GREENLEDs[23]);
^~~~
FKQYYC5I92LSHL8:305:13: error: 'IchG' was not declared in this scope
Tlc.set(IchG, GREENLEDs[24]);
^~~~
FKQYYC5I92LSHL8:306:13: error: 'JchG' was not declared in this scope
Tlc.set(JchG, GREENLEDs[25]);
^~~~
FKQYYC5I92LSHL8:307:13: error: 'KchG' was not declared in this scope
Tlc.set(KchG, GREENLEDs[26]);
^~~~
FKQYYC5I92LSHL8:308:13: error: 'LchG' was not declared in this scope
Tlc.set(LchG, GREENLEDs[27]);
^~~~
FKQYYC5I92LSHL8:309:13: error: 'MchG' was not declared in this scope
Tlc.set(MchG, GREENLEDs[28]);
^~~~
FKQYYC5I92LSHL8:310:13: error: 'NchG' was not declared in this scope
Tlc.set(NchG, GREENLEDs[29]);
^~~~
FKQYYC5I92LSHL8:311:13: error: 'OchG' was not declared in this scope
Tlc.set(OchG, GREENLEDs[30]);
^~~~
FKQYYC5I92LSHL8:312:13: error: 'PchG' was not declared in this scope
Tlc.set(PchG, GREENLEDs[31]);
^~~~
FKQYYC5I92LSHL8:313:13: error: 'AchB' was not declared in this scope
Tlc.set(AchB, BLUELEDs[16]);
^~~~
FKQYYC5I92LSHL8:313:19: error: 'BLUELEDs' was not declared in this scope
Tlc.set(AchB, BLUELEDs[16]);
^~~~~~~~
FKQYYC5I92LSHL8:314:13: error: 'BchB' was not declared in this scope
Tlc.set(BchB, BLUELEDs[17]);
^~~~
FKQYYC5I92LSHL8:315:13: error: 'CchB' was not declared in this scope
Tlc.set(CchB, BLUELEDs[18]);
^~~~
FKQYYC5I92LSHL8:316:13: error: 'DchB' was not declared in this scope
Tlc.set(DchB, BLUELEDs[19]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:316:13: note: suggested alternative: 'DDRB'
Tlc.set(DchB, BLUELEDs[19]);
^~~~
DDRB
FKQYYC5I92LSHL8:317:13: error: 'EchB' was not declared in this scope
Tlc.set(EchB, BLUELEDs[20]);
^~~~
FKQYYC5I92LSHL8:318:13: error: 'FchB' was not declared in this scope
Tlc.set(FchB, BLUELEDs[21]);
^~~~
FKQYYC5I92LSHL8:319:13: error: 'GchB' was not declared in this scope
Tlc.set(GchB, BLUELEDs[22]);
^~~~
FKQYYC5I92LSHL8:320:13: error: 'HchB' was not declared in this scope
Tlc.set(HchB, BLUELEDs[23]);
^~~~
FKQYYC5I92LSHL8:321:13: error: 'IchB' was not declared in this scope
Tlc.set(IchB, BLUELEDs[24]);
^~~~
FKQYYC5I92LSHL8:322:13: error: 'JchB' was not declared in this scope
Tlc.set(JchB, BLUELEDs[25]);
^~~~
FKQYYC5I92LSHL8:323:13: error: 'KchB' was not declared in this scope
Tlc.set(KchB, BLUELEDs[26]);
^~~~
FKQYYC5I92LSHL8:324:13: error: 'LchB' was not declared in this scope
Tlc.set(LchB, BLUELEDs[27]);
^~~~
FKQYYC5I92LSHL8:325:13: error: 'MchB' was not declared in this scope
Tlc.set(MchB, BLUELEDs[28]);
^~~~
FKQYYC5I92LSHL8:326:13: error: 'NchB' was not declared in this scope
Tlc.set(NchB, BLUELEDs[29]);
^~~~
FKQYYC5I92LSHL8:327:13: error: 'OchB' was not declared in this scope
Tlc.set(OchB, BLUELEDs[30]);
^~~~
FKQYYC5I92LSHL8:328:13: error: 'PchB' was not declared in this scope
Tlc.set(PchB, BLUELEDs[31]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:328:13: note: suggested alternative: 'PINB'
Tlc.set(PchB, BLUELEDs[31]);
^~~~
PINB
FKQYYC5I92LSHL8:331:16: error: 'LayerOne' was not declared in this scope
digitalWrite(LayerOne, HIGH); // same as if(layerno==1)
^~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:331:16: note: suggested alternative: 'layerno'
digitalWrite(LayerOne, HIGH); // same as if(layerno==1)
^~~~~~~~
layerno
FKQYYC5I92LSHL8:332:16: error: 'LayerTwo' was not declared in this scope
digitalWrite(LayerTwo, HIGH);
^~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:332:16: note: suggested alternative: 'layerno'
digitalWrite(LayerTwo, HIGH);
^~~~~~~~
layerno
FKQYYC5I92LSHL8:333:16: error: 'LayerThree' was not declared in this scope
digitalWrite(LayerThree, HIGH);
^~~~~~~~~~
FKQYYC5I92LSHL8:334:16: error: 'LayerFour' was not declared in this scope
digitalWrite(LayerFour, HIGH);
^~~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:334:16: note: suggested alternative: 'layerno'
digitalWrite(LayerFour, HIGH);
^~~~~~~~~
layerno
FKQYYC5I92LSHL8:344:5: error: 'Tlc' was not declared in this scope
Tlc.set(AchR, REDLEDs[32]); // same as if(layerno == 1) but we use different brightness, so we define LEDs in the third layer
^~~
FKQYYC5I92LSHL8:344:13: error: 'AchR' was not declared in this scope
Tlc.set(AchR, REDLEDs[32]); // same as if(layerno == 1) but we use different brightness, so we define LEDs in the third layer
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:344:13: note: suggested alternative: 'ACSR'
Tlc.set(AchR, REDLEDs[32]); // same as if(layerno == 1) but we use different brightness, so we define LEDs in the third layer
^~~~
ACSR
FKQYYC5I92LSHL8:344:19: error: 'REDLEDs' was not declared in this scope
Tlc.set(AchR, REDLEDs[32]); // same as if(layerno == 1) but we use different brightness, so we define LEDs in the third layer
^~~~~~~
FKQYYC5I92LSHL8:345:13: error: 'BchR' was not declared in this scope
Tlc.set(BchR, REDLEDs[33]);
^~~~
FKQYYC5I92LSHL8:346:13: error: 'CchR' was not declared in this scope
Tlc.set(CchR, REDLEDs[34]);
^~~~
FKQYYC5I92LSHL8:347:13: error: 'DchR' was not declared in this scope
Tlc.set(DchR, REDLEDs[35]);
^~~~
FKQYYC5I92LSHL8:348:13: error: 'EchR' was not declared in this scope
Tlc.set(EchR, REDLEDs[36]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:348:13: note: suggested alternative: 'EECR'
Tlc.set(EchR, REDLEDs[36]);
^~~~
EECR
FKQYYC5I92LSHL8:349:13: error: 'FchR' was not declared in this scope
Tlc.set(FchR, REDLEDs[37]);
^~~~
FKQYYC5I92LSHL8:350:13: error: 'GchR' was not declared in this scope
Tlc.set(GchR, REDLEDs[38]);
^~~~
FKQYYC5I92LSHL8:351:13: error: 'HchR' was not declared in this scope
Tlc.set(HchR, REDLEDs[39]);
^~~~
FKQYYC5I92LSHL8:352:13: error: 'IchR' was not declared in this scope
Tlc.set(IchR, REDLEDs[40]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:352:13: note: suggested alternative: 'ISR'
Tlc.set(IchR, REDLEDs[40]);
^~~~
ISR
FKQYYC5I92LSHL8:353:13: error: 'JchR' was not declared in this scope
Tlc.set(JchR, REDLEDs[41]);
^~~~
FKQYYC5I92LSHL8:354:13: error: 'KchR' was not declared in this scope
Tlc.set(KchR, REDLEDs[42]);
^~~~
FKQYYC5I92LSHL8:355:13: error: 'LchR' was not declared in this scope
Tlc.set(LchR, REDLEDs[43]);
^~~~
FKQYYC5I92LSHL8:356:13: error: 'MchR' was not declared in this scope
Tlc.set(MchR, REDLEDs[44]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:356:13: note: suggested alternative: 'MSTR'
Tlc.set(MchR, REDLEDs[44]);
^~~~
MSTR
FKQYYC5I92LSHL8:357:13: error: 'NchR' was not declared in this scope
Tlc.set(NchR, REDLEDs[45]);
^~~~
FKQYYC5I92LSHL8:358:13: error: 'OchR' was not declared in this scope
Tlc.set(OchR, REDLEDs[46]);
^~~~
FKQYYC5I92LSHL8:359:13: error: 'PchR' was not declared in this scope
Tlc.set(PchR, REDLEDs[47]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:359:13: note: suggested alternative: 'PRR'
Tlc.set(PchR, REDLEDs[47]);
^~~~
PRR
FKQYYC5I92LSHL8:360:13: error: 'AchG' was not declared in this scope
Tlc.set(AchG, GREENLEDs[32]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:360:13: note: suggested alternative: 'ACBG'
Tlc.set(AchG, GREENLEDs[32]);
^~~~
ACBG
FKQYYC5I92LSHL8:360:19: error: 'GREENLEDs' was not declared in this scope
Tlc.set(AchG, GREENLEDs[32]);
^~~~~~~~~
FKQYYC5I92LSHL8:361:13: error: 'BchG' was not declared in this scope
Tlc.set(BchG, GREENLEDs[33]);
^~~~
FKQYYC5I92LSHL8:362:13: error: 'CchG' was not declared in this scope
Tlc.set(CchG, GREENLEDs[34]);
^~~~
FKQYYC5I92LSHL8:363:13: error: 'DchG' was not declared in this scope
Tlc.set(DchG, GREENLEDs[35]);
^~~~
FKQYYC5I92LSHL8:364:13: error: 'EchG' was not declared in this scope
Tlc.set(EchG, GREENLEDs[36]);
^~~~
FKQYYC5I92LSHL8:365:13: error: 'FchG' was not declared in this scope
Tlc.set(FchG, GREENLEDs[37]);
^~~~
FKQYYC5I92LSHL8:366:13: error: 'GchG' was not declared in this scope
Tlc.set(GchG, GREENLEDs[38]);
^~~~
FKQYYC5I92LSHL8:367:13: error: 'HchG' was not declared in this scope
Tlc.set(HchG, GREENLEDs[39]);
^~~~
FKQYYC5I92LSHL8:368:13: error: 'IchG' was not declared in this scope
Tlc.set(IchG, GREENLEDs[40]);
^~~~
FKQYYC5I92LSHL8:369:13: error: 'JchG' was not declared in this scope
Tlc.set(JchG, GREENLEDs[41]);
^~~~
FKQYYC5I92LSHL8:370:13: error: 'KchG' was not declared in this scope
Tlc.set(KchG, GREENLEDs[42]);
^~~~
FKQYYC5I92LSHL8:371:13: error: 'LchG' was not declared in this scope
Tlc.set(LchG, GREENLEDs[43]);
^~~~
FKQYYC5I92LSHL8:372:13: error: 'MchG' was not declared in this scope
Tlc.set(MchG, GREENLEDs[44]);
^~~~
FKQYYC5I92LSHL8:373:13: error: 'NchG' was not declared in this scope
Tlc.set(NchG, GREENLEDs[45]);
^~~~
FKQYYC5I92LSHL8:374:13: error: 'OchG' was not declared in this scope
Tlc.set(OchG, GREENLEDs[46]);
^~~~
FKQYYC5I92LSHL8:375:13: error: 'PchG' was not declared in this scope
Tlc.set(PchG, GREENLEDs[47]);
^~~~
FKQYYC5I92LSHL8:376:13: error: 'AchB' was not declared in this scope
Tlc.set(AchB, BLUELEDs[32]);
^~~~
FKQYYC5I92LSHL8:376:19: error: 'BLUELEDs' was not declared in this scope
Tlc.set(AchB, BLUELEDs[32]);
^~~~~~~~
FKQYYC5I92LSHL8:377:13: error: 'BchB' was not declared in this scope
Tlc.set(BchB, BLUELEDs[33]);
^~~~
FKQYYC5I92LSHL8:378:13: error: 'CchB' was not declared in this scope
Tlc.set(CchB, BLUELEDs[34]);
^~~~
FKQYYC5I92LSHL8:379:13: error: 'DchB' was not declared in this scope
Tlc.set(DchB, BLUELEDs[35]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:379:13: note: suggested alternative: 'DDRB'
Tlc.set(DchB, BLUELEDs[35]);
^~~~
DDRB
FKQYYC5I92LSHL8:380:13: error: 'EchB' was not declared in this scope
Tlc.set(EchB, BLUELEDs[36]);
^~~~
FKQYYC5I92LSHL8:381:13: error: 'FchB' was not declared in this scope
Tlc.set(FchB, BLUELEDs[37]);
^~~~
FKQYYC5I92LSHL8:382:13: error: 'GchB' was not declared in this scope
Tlc.set(GchB, BLUELEDs[38]);
^~~~
FKQYYC5I92LSHL8:383:13: error: 'HchB' was not declared in this scope
Tlc.set(HchB, BLUELEDs[39]);
^~~~
FKQYYC5I92LSHL8:384:13: error: 'IchB' was not declared in this scope
Tlc.set(IchB, BLUELEDs[40]);
^~~~
FKQYYC5I92LSHL8:385:13: error: 'JchB' was not declared in this scope
Tlc.set(JchB, BLUELEDs[41]);
^~~~
FKQYYC5I92LSHL8:386:13: error: 'KchB' was not declared in this scope
Tlc.set(KchB, BLUELEDs[42]);
^~~~
FKQYYC5I92LSHL8:387:13: error: 'LchB' was not declared in this scope
Tlc.set(LchB, BLUELEDs[43]);
^~~~
FKQYYC5I92LSHL8:388:13: error: 'MchB' was not declared in this scope
Tlc.set(MchB, BLUELEDs[44]);
^~~~
FKQYYC5I92LSHL8:389:13: error: 'NchB' was not declared in this scope
Tlc.set(NchB, BLUELEDs[45]);
^~~~
FKQYYC5I92LSHL8:390:13: error: 'OchB' was not declared in this scope
Tlc.set(OchB, BLUELEDs[46]);
^~~~
FKQYYC5I92LSHL8:391:13: error: 'PchB' was not declared in this scope
Tlc.set(PchB, BLUELEDs[47]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:391:13: note: suggested alternative: 'PINB'
Tlc.set(PchB, BLUELEDs[47]);
^~~~
PINB
FKQYYC5I92LSHL8:394:16: error: 'LayerOne' was not declared in this scope
digitalWrite(LayerOne, HIGH); // same as if(layerno==1)
^~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:394:16: note: suggested alternative: 'layerno'
digitalWrite(LayerOne, HIGH); // same as if(layerno==1)
^~~~~~~~
layerno
FKQYYC5I92LSHL8:395:16: error: 'LayerTwo' was not declared in this scope
digitalWrite(LayerTwo, HIGH);
^~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:395:16: note: suggested alternative: 'layerno'
digitalWrite(LayerTwo, HIGH);
^~~~~~~~
layerno
FKQYYC5I92LSHL8:396:16: error: 'LayerThree' was not declared in this scope
digitalWrite(LayerThree, HIGH);
^~~~~~~~~~
FKQYYC5I92LSHL8:397:16: error: 'LayerFour' was not declared in this scope
digitalWrite(LayerFour, HIGH);
^~~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:397:16: note: suggested alternative: 'layerno'
digitalWrite(LayerFour, HIGH);
^~~~~~~~~
layerno
FKQYYC5I92LSHL8:407:5: error: 'Tlc' was not declared in this scope
Tlc.set(AchR, REDLEDs[48]); // same as if(layerno == 1) but we use different brightness, so we define LEDs in the fourth layer
^~~
FKQYYC5I92LSHL8:407:13: error: 'AchR' was not declared in this scope
Tlc.set(AchR, REDLEDs[48]); // same as if(layerno == 1) but we use different brightness, so we define LEDs in the fourth layer
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:407:13: note: suggested alternative: 'ACSR'
Tlc.set(AchR, REDLEDs[48]); // same as if(layerno == 1) but we use different brightness, so we define LEDs in the fourth layer
^~~~
ACSR
FKQYYC5I92LSHL8:407:19: error: 'REDLEDs' was not declared in this scope
Tlc.set(AchR, REDLEDs[48]); // same as if(layerno == 1) but we use different brightness, so we define LEDs in the fourth layer
^~~~~~~
FKQYYC5I92LSHL8:408:13: error: 'BchR' was not declared in this scope
Tlc.set(BchR, REDLEDs[49]);
^~~~
FKQYYC5I92LSHL8:409:13: error: 'CchR' was not declared in this scope
Tlc.set(CchR, REDLEDs[50]);
^~~~
FKQYYC5I92LSHL8:410:13: error: 'DchR' was not declared in this scope
Tlc.set(DchR, REDLEDs[51]);
^~~~
FKQYYC5I92LSHL8:411:13: error: 'EchR' was not declared in this scope
Tlc.set(EchR, REDLEDs[52]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:411:13: note: suggested alternative: 'EECR'
Tlc.set(EchR, REDLEDs[52]);
^~~~
EECR
FKQYYC5I92LSHL8:412:13: error: 'FchR' was not declared in this scope
Tlc.set(FchR, REDLEDs[53]);
^~~~
FKQYYC5I92LSHL8:413:13: error: 'GchR' was not declared in this scope
Tlc.set(GchR, REDLEDs[54]);
^~~~
FKQYYC5I92LSHL8:414:13: error: 'HchR' was not declared in this scope
Tlc.set(HchR, REDLEDs[55]);
^~~~
FKQYYC5I92LSHL8:415:13: error: 'IchR' was not declared in this scope
Tlc.set(IchR, REDLEDs[56]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:415:13: note: suggested alternative: 'ISR'
Tlc.set(IchR, REDLEDs[56]);
^~~~
ISR
FKQYYC5I92LSHL8:416:13: error: 'JchR' was not declared in this scope
Tlc.set(JchR, REDLEDs[57]);
^~~~
FKQYYC5I92LSHL8:417:13: error: 'KchR' was not declared in this scope
Tlc.set(KchR, REDLEDs[58]);
^~~~
FKQYYC5I92LSHL8:418:13: error: 'LchR' was not declared in this scope
Tlc.set(LchR, REDLEDs[59]);
^~~~
FKQYYC5I92LSHL8:419:13: error: 'MchR' was not declared in this scope
Tlc.set(MchR, REDLEDs[60]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:419:13: note: suggested alternative: 'MSTR'
Tlc.set(MchR, REDLEDs[60]);
^~~~
MSTR
FKQYYC5I92LSHL8:420:13: error: 'NchR' was not declared in this scope
Tlc.set(NchR, REDLEDs[61]);
^~~~
FKQYYC5I92LSHL8:421:13: error: 'OchR' was not declared in this scope
Tlc.set(OchR, REDLEDs[62]);
^~~~
FKQYYC5I92LSHL8:422:13: error: 'PchR' was not declared in this scope
Tlc.set(PchR, REDLEDs[63]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:422:13: note: suggested alternative: 'PRR'
Tlc.set(PchR, REDLEDs[63]);
^~~~
PRR
FKQYYC5I92LSHL8:423:13: error: 'AchG' was not declared in this scope
Tlc.set(AchG, GREENLEDs[48]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:423:13: note: suggested alternative: 'ACBG'
Tlc.set(AchG, GREENLEDs[48]);
^~~~
ACBG
FKQYYC5I92LSHL8:423:19: error: 'GREENLEDs' was not declared in this scope
Tlc.set(AchG, GREENLEDs[48]);
^~~~~~~~~
FKQYYC5I92LSHL8:424:13: error: 'BchG' was not declared in this scope
Tlc.set(BchG, GREENLEDs[49]);
^~~~
FKQYYC5I92LSHL8:425:13: error: 'CchG' was not declared in this scope
Tlc.set(CchG, GREENLEDs[50]);
^~~~
FKQYYC5I92LSHL8:426:13: error: 'DchG' was not declared in this scope
Tlc.set(DchG, GREENLEDs[51]);
^~~~
FKQYYC5I92LSHL8:427:13: error: 'EchG' was not declared in this scope
Tlc.set(EchG, GREENLEDs[52]);
^~~~
FKQYYC5I92LSHL8:428:13: error: 'FchG' was not declared in this scope
Tlc.set(FchG, GREENLEDs[53]);
^~~~
FKQYYC5I92LSHL8:429:13: error: 'GchG' was not declared in this scope
Tlc.set(GchG, GREENLEDs[54]);
^~~~
FKQYYC5I92LSHL8:430:13: error: 'HchG' was not declared in this scope
Tlc.set(HchG, GREENLEDs[55]);
^~~~
FKQYYC5I92LSHL8:431:13: error: 'IchG' was not declared in this scope
Tlc.set(IchG, GREENLEDs[56]);
^~~~
FKQYYC5I92LSHL8:432:13: error: 'JchG' was not declared in this scope
Tlc.set(JchG, GREENLEDs[57]);
^~~~
FKQYYC5I92LSHL8:433:13: error: 'KchG' was not declared in this scope
Tlc.set(KchG, GREENLEDs[58]);
^~~~
FKQYYC5I92LSHL8:434:13: error: 'LchG' was not declared in this scope
Tlc.set(LchG, GREENLEDs[59]);
^~~~
FKQYYC5I92LSHL8:435:13: error: 'MchG' was not declared in this scope
Tlc.set(MchG, GREENLEDs[60]);
^~~~
FKQYYC5I92LSHL8:436:13: error: 'NchG' was not declared in this scope
Tlc.set(NchG, GREENLEDs[61]);
^~~~
FKQYYC5I92LSHL8:437:13: error: 'OchG' was not declared in this scope
Tlc.set(OchG, GREENLEDs[62]);
^~~~
FKQYYC5I92LSHL8:438:13: error: 'PchG' was not declared in this scope
Tlc.set(PchG, GREENLEDs[63]);
^~~~
FKQYYC5I92LSHL8:439:13: error: 'AchB' was not declared in this scope
Tlc.set(AchB, BLUELEDs[48]);
^~~~
FKQYYC5I92LSHL8:439:19: error: 'BLUELEDs' was not declared in this scope
Tlc.set(AchB, BLUELEDs[48]);
^~~~~~~~
FKQYYC5I92LSHL8:440:13: error: 'BchB' was not declared in this scope
Tlc.set(BchB, BLUELEDs[49]);
^~~~
FKQYYC5I92LSHL8:441:13: error: 'CchB' was not declared in this scope
Tlc.set(CchB, BLUELEDs[50]);
^~~~
FKQYYC5I92LSHL8:442:13: error: 'DchB' was not declared in this scope
Tlc.set(DchB, BLUELEDs[51]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:442:13: note: suggested alternative: 'DDRB'
Tlc.set(DchB, BLUELEDs[51]);
^~~~
DDRB
FKQYYC5I92LSHL8:443:13: error: 'EchB' was not declared in this scope
Tlc.set(EchB, BLUELEDs[52]);
^~~~
FKQYYC5I92LSHL8:444:13: error: 'FchB' was not declared in this scope
Tlc.set(FchB, BLUELEDs[53]);
^~~~
FKQYYC5I92LSHL8:445:13: error: 'GchB' was not declared in this scope
Tlc.set(GchB, BLUELEDs[54]);
^~~~
FKQYYC5I92LSHL8:446:13: error: 'HchB' was not declared in this scope
Tlc.set(HchB, BLUELEDs[55]);
^~~~
FKQYYC5I92LSHL8:447:13: error: 'IchB' was not declared in this scope
Tlc.set(IchB, BLUELEDs[56]);
^~~~
FKQYYC5I92LSHL8:448:13: error: 'JchB' was not declared in this scope
Tlc.set(JchB, BLUELEDs[57]);
^~~~
FKQYYC5I92LSHL8:449:13: error: 'KchB' was not declared in this scope
Tlc.set(KchB, BLUELEDs[58]);
^~~~
FKQYYC5I92LSHL8:450:13: error: 'LchB' was not declared in this scope
Tlc.set(LchB, BLUELEDs[59]);
^~~~
FKQYYC5I92LSHL8:451:13: error: 'MchB' was not declared in this scope
Tlc.set(MchB, BLUELEDs[60]);
^~~~
FKQYYC5I92LSHL8:452:13: error: 'NchB' was not declared in this scope
Tlc.set(NchB, BLUELEDs[61]);
^~~~
FKQYYC5I92LSHL8:453:13: error: 'OchB' was not declared in this scope
Tlc.set(OchB, BLUELEDs[62]);
^~~~
FKQYYC5I92LSHL8:454:13: error: 'PchB' was not declared in this scope
Tlc.set(PchB, BLUELEDs[63]);
^~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:454:13: note: suggested alternative: 'PINB'
Tlc.set(PchB, BLUELEDs[63]);
^~~~
PINB
FKQYYC5I92LSHL8:457:16: error: 'LayerOne' was not declared in this scope
digitalWrite(LayerOne, HIGH); // same as if(layerno==1)
^~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:457:16: note: suggested alternative: 'layerno'
digitalWrite(LayerOne, HIGH); // same as if(layerno==1)
^~~~~~~~
layerno
FKQYYC5I92LSHL8:458:16: error: 'LayerTwo' was not declared in this scope
digitalWrite(LayerTwo, HIGH);
^~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:458:16: note: suggested alternative: 'layerno'
digitalWrite(LayerTwo, HIGH);
^~~~~~~~
layerno
FKQYYC5I92LSHL8:459:16: error: 'LayerThree' was not declared in this scope
digitalWrite(LayerThree, HIGH);
^~~~~~~~~~
FKQYYC5I92LSHL8:460:16: error: 'LayerFour' was not declared in this scope
digitalWrite(LayerFour, HIGH);
^~~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:460:16: note: suggested alternative: 'layerno'
digitalWrite(LayerFour, HIGH);
^~~~~~~~~
layerno
FKQYYC5I92LSHL8:468:16: error: 'LayerOne' was not declared in this scope
digitalWrite(LayerOne, HIGH); // same as if(layerno==1)
^~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:468:16: note: suggested alternative: 'layerno'
digitalWrite(LayerOne, HIGH); // same as if(layerno==1)
^~~~~~~~
layerno
FKQYYC5I92LSHL8:469:16: error: 'LayerTwo' was not declared in this scope
digitalWrite(LayerTwo, HIGH);
^~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:469:16: note: suggested alternative: 'layerno'
digitalWrite(LayerTwo, HIGH);
^~~~~~~~
layerno
FKQYYC5I92LSHL8:470:16: error: 'LayerThree' was not declared in this scope
digitalWrite(LayerThree, HIGH);
^~~~~~~~~~
FKQYYC5I92LSHL8:471:16: error: 'LayerFour' was not declared in this scope
digitalWrite(LayerFour, HIGH);
^~~~~~~~~
/Users/ianwright/Desktop/Arduino Code/4x4x4 RGB Cube/FKQYYC5I92LSHL8/FKQYYC5I92LSHL8.ino:471:16: note: suggested alternative: 'layerno'
digitalWrite(LayerFour, HIGH);
^~~~~~~~~
layerno
FKQYYC5I92LSHL8:472:3: error: 'Tlc' was not declared in this scope
Tlc.update();
^~~
exit status 1
'REDLEDs' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

0
cloud112
cloud112

5 months ago

I recently succeeded in my build of this cube and wanted to share a few things I learned for those of you struggling in the comments:

This thing was frikin obnoxious with all the trouble shooting that had to be done.

Things to note:
1) Make sure you look through the library archive that is being uploaded by the Arduino and ensure you are using the right pins!!! Cant tell you how obnoxious this was as I tried to get a Teensy 2.0++ setup to run the cube. At first, I thought the whole thing was a bust till I realized that the pinouts were different across devices.
2) Don't use sockets. Period. Not even the ones Scott uses. They caused me a lot of headaches for nothing. I removed the sockets and suddenly had fewer headaches (I'll take what I can get but they were a major source of error).
3) Use multidimensional arrays for your pinouts.
4) Scotts' code is outdated BUT, with a little tweaking, still perfectly functional (I had to remove some old libraries and from what I remember it was minimal effort for a even a noob like me).

0
Bluestreekcustoms
Bluestreekcustoms

Question 1 year ago

i made a rgb led matrix cube, i downloaded the charliecube code but can't get it to work, it has many different types of .h files, when i try to compile code it gives me, (whichever .h file) an error of, " ---.h file, no such file or directory,,, I've tried downloading many.h file readers I've tried downloading all the files themselves, I've tried rearranging them in my Arduino file, i just cant get it to work, what am i doing wrong or missing? how do i get my IDE to find the file or directory?

0
mr.botche
mr.botche

Question 1 year ago

this is my first time using an aduino and when i ran the code it had errors compiling. can you help with setting up the aduino maybe i did something wrong

0
Bigcity1960
Bigcity1960

Answer 1 year ago

Hello, can you tell me the error Messages?

0
mr.botche
mr.botche

Reply 1 year ago

Tlc was not declared in this scope

0
Bigcity1960
Bigcity1960

Reply 1 year ago

Hello, can you give me your e-mail address so. I can send you the instruction to compile the code

0
Bigcity1960
Bigcity1960

Reply 1 year ago

Send you an e-mail with installatie instructions

0
Aviyoyo
Aviyoyo

2 years ago

hey scott can you help me my cube is not working

0
Bigcity1960
Bigcity1960

Reply 1 year ago

Hello Aviyoyo, I can help you, what’s Your problem.

0
Electronicsguyharry
Electronicsguyharry

2 years ago

Hey greatscott! I was wondering, do you have a Gerber file of this schematic? If so, could you please provide me with it? It's urgent.

0
adrianalin
adrianalin

Question 3 years ago on Step 5

Scott i'm fallowing your gidlins and i'v don a scheci but dont realy know if this is rowat or not ? can you pls take a luck at the wiering ?

0
gmadx
gmadx

3 years ago

Hello GreatScott! First thanks for the videos and content you provide us, keep on! I have almost finished the cube but when I turn it on I see a dim flash and that is it. The animation is running but no brightness... I used IRF9530 mosfet, there is the apeshit, right?

0
Aviyoyo
Aviyoyo

3 years ago

HEY IS TARTED TO MADE IT BUT CAN U TELL HOW THE 0 AND THE 16 IN THE IC OUTPUT ARE TO BE PLACED .

0
tomi942
tomi942

4 years ago

Lovely thing GreatScott. I just started to do this :D

0
Chauhan Vivek R
Chauhan Vivek R

4 years ago

If i want to make just one color cube, i have to need just one ic and 4 MOSFET?

0
tomi942
tomi942

Reply 4 years ago

four mosfets for 4 anode layers :D