Could someone explain to me this error?
error: too few arguments to function ‘int getMode(int, int, int, int, int)’
It means you aren’t calling getMode with five arguments.
If i showed you the code in question could you help me? Im reletivly new to the Arduino
Sure - paste the code in on either http://pastebin.com or http://gist.girhub.com and put the link here and I can take a look.
http://pastebin.com/1NWHB5EZ
Thanks!
the error is on line 34, i try to add more than 3 int’s and i get an error
If you add a fourth argument to getMode you need to add the fourth to the calls you make to it as well. Ditto for a fifth.
Another thought, It is possible that there is another function defined in the arduino library called getMode that has only three arguments that is screwing things up - try changing the name to something like myGetMode.
ok. will try. thank you!
thanks for the help, I found the problem. I was forgetting to tell the program to read the pins as digitalRead, which the compilier was obviously catching.