Re: function is not being called


quote
code: [select]
pinmode(a1, input);

i suspect problem.  i don't think supposed use pinmode() analog pins.  this function call takes arduino pin 1, serial transmit data line, , makes input, won't output serial port afterwards.

take out function call , see if works better.

-j

"if(calcount = 0)" doesn't mean checking if calcount , 0 same number. apply number 0 calcount. , far know makes statement false because calcount 0 , false.

what should this:

if(calcount == 0)

this check if calcount zero, want do.

/have great day,
fredrik andersson


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Re: function is not being called


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums