im confused why it doesn't work.
Start here
EDIT: AWOL!
Please start by reading this thread.
Most people won't download a piece of code when you can easily post it on the forum.
Just off the top of my head, I'd say you're missing a '}' somewhere in your code.
If you use tools -> autoformat in the IDE, you will see your first incorrect indent on line 131. You're missing a ] in line 130; there might be other issues.
// Edit
You're also missing plenty of commas in your arrays and, as predicted above, a } at the end of loop().
Sorry, I think that I misjudged the latter due to plenty other errors in your arrays.
Hi,
What model Arduino is the code written for?
What is the code supposed to do?
Did you write this code?
Can you tell us your electronics, programming, Arduino, hardware experience?
Thanks.. Tom... ![]()
Hi,
byte epone[8] = {0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00};
byte eptwo[8] = {0x00, 0x00, 0x3c, 0x22, 0x22, 0x18 0x00, 0x00};
eptwo[8] line has something missing, look at the epone[8] line.
And there are other similar missing characters further down.
Tom... ![]()
And tens of missing semi-colons. And hex numbers with an invalid hex character in it and hex values starting with ox instead of 0x.
Placing those arrays inside loop() is a little dangerous; the IDE will not be able to warn you if you run out of memory. Make them global and const or even better, place them in progmem.
Hi,
When you do a COMPILE and an error occurs, if you look in the code area of the IDE it will have HIGHLIGHTED the line that has the error, or the error will be in the line before it if it has a ; missing.
They look like common typos, I'm not sure what the arrays are supposed to do, but were they generated by an app, did you cut and paste the result, or hand copy each line character line by line/
Tom... ![]()
OP actually should never have gotten to the point of missing semi-colons
OP should have just populated the arrays and compile; no prints or what-so-ever.
BJHenry:
EDIT: AWOL!
Please start by reading this thread.
Most people won't download a piece of code when you can easily post it on the forum.
Just off the top of my head, I'd say you're missing a '}' somewhere in your code.
some [rarely] post to links in the hopes that no one will copy and paste the whole sketch in the forum.
then, once they get the answer, delete all and replace with a .
they are hoping their professor will not find out who did their homework.
I don't see this as the case, but there are a few threads that are just . for subject lines