I am trying to compile my code but I found the next error: too many parameters error.
I created a function called spwrite -> void spwrite(uint8_t x,uint8_t v);
Then I used the function in main()
spwrite(Xdata, Ydata);
Xdata and Ydata are declared well. Why should I do to solve the error?
Thanks
what is the error meesage? right now the only thing i can think of that your fucntion has not been defined in your code. you should have the following
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <something>
void spwrite(int Xdata,int Ydata);
int main()
{
int Xdata,Ydata;
do somethings
spwrite(Xdata,Ydata);
}
void spwrite(int x, int y)
{
do things
return;
}
hope this helps. if you can post your code along with error message