Writing code problems

Hello, this is my first post. I'm just getting into arduino and basically copying other peoples stuff at the moment and modifying it.

At the moment I am messing around with an LED Matrix 8x8 but when I COPY the code precisely, I get errors. I am including the correct libraries.

I have noticed aswell that the lettering is orange and blue for things such as 'for' 'ledWrite' 'Byte' etc.

But even though I type it correctly #my lettering is BLUE.

I am only currently trying to draw simple 64 bit images with the matrix but I am struggling to set it up.

This is what I am typing:

#include <LedControl.h>

LedControl 1c=LedControl(12,11,10,1);

unsigned long DelayTime=100;

However when I verify this i get an error;

"
sketch_jun17a:3: error: invalid suffix "c" on integer constant
sketch_jun17a:3: error: expected unqualified-id before numeric constant
invalid suffix "c" on integer constant
"

Im sure there is something silly i'm doing buy any help is appreciated.

You might want to post your full code.

CWashburn:
You might want to post your full code.

This is all I have at the moment, I was copying it from a youtuber and noticed the lettering was a different colour. I did type everything but deleted that :frowning:

its from this:

It looks like you are trying to create an object named 1c and the compiler thinks that it is a number and cannot understand the c suffix. Try changing all the instances of 1c to c1 (or a meaningful name) and try compiling again.

Thanks, that has solved my problem this time. Do you know why my lettering is blue on some text when others have it orange?

Orange is for keyword of libraries you use. If you type digitalWrite it will be orange as well. :wink:

var names cannot start with a digit, use a character instead. After the first character it's okay,

Each library has a keywords.txt file that defines which words are to be
coloured when using it... Go have a nosey, that's what open-source is all about