Go Down

Topic: to many arguments to function (Read 1 time) previous topic - next topic

arduinohabib

Hey all this code compiled in IDE 1.0 but did not compile in Arduino ERW. I was using ERW...Sorry for the time.
What is man's best friend? The breadboard!

arduinohabib

@HazerdousMind Thank you I knew that but this was old code I was going through, copy and pasting it
Thanks anyway!
Habib
What is man's best friend? The breadboard!

AWOL

Code: [Select]
val=map(val, 0, 1023, 0, 9);
 sevenseg(val);


Code: [Select]
void sevenseg(int val){
 switch(val){
   case'0': zero();
   break;
   case'1': one();
   break;
   case'2': two();


Your code will not work - lose the quotes.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

arduinohabib

I know... But why not? It used to.
What is man's best friend? The breadboard!

KeithRB

'0' is ASCII character 0, not the integer 0. ASCII character 0 is actually decimal 48.

Go Up