i have an error
but i dont understand and i have no skill in electronics and i have an arduino uno r3 from creation crate(not sure if that changes anything)my project is a memory game and here in my code so far. thanks!
const int button1=2;
const int button2=3;
const int button3=4;
const int button4=5;
const int led1=7;
const int led2=8;
const int led3=9;
const int led4=10;
const int buzzer=12;
const int tones[]={1900,1600,1300,1000,3200};
int buttonState[]={0,0,0,0};
int lastButtonState[]={0,0,0,0};
int buttonCounter[]={0,0,0,0};
int game0n=0;
int wait=0;
int currentLevel=1;
int dlay=500;
int ledTime=500;
int n_levels=10;
int pinAndTone=0;
int correct=0;
int speedFactor=5;
int ledDelay=200;
Please read the post at the start of any forum , entitled "How to use this Forum".
OR http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
/tmp/961973469/build/../../core/core_Intel_arc32_arduino_101_ce7885b3d89440f4810c5db77fdcac10.a(main.cpp.o): In function main': /home/builder/.arduino15/packages/Intel/hardware/arc32/2.0.4/cores/arduino/main.cpp:43: undefined reference to setup'
/home/builder/.arduino15/packages/Intel/hardware/arc32/2.0.4/cores/arduino/main.cpp:47: undefined reference to `loop'
collect2: error: ld returned 1 exit status
exit status 1
bobskelebone:
okay now i get the following error message
/tmp/961973469/build/../../core/core_Intel_arc32_arduino_101_ce7885b3d89440f4810c5db77fdcac10.a(main.cpp.o): In function main': /home/builder/.arduino15/packages/Intel/hardware/arc32/2.0.4/cores/arduino/main.cpp:43: undefined reference to setup'
/home/builder/.arduino15/packages/Intel/hardware/arc32/2.0.4/cores/arduino/main.cpp:47: undefined reference to `loop'
collect2: error: ld returned 1 exit status
exit status 1
so what does it mean?
Your sketch does not contain the setup() and loop() functions.
I suggest that you start with some example sketches and see if you can figure out what is common between all of them. You don't even have to compile them.
sterretje:
I suggest that you start with some example sketches and see if you can figure out what is common between all of them. You don't even have to compile them.
Please read the post at the start of any forum , entitled "How to use this Forum".
OR http://forum.arduino.cc/index.php/topic,148850.0.html. Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.