how to write c code for motor

Harald Kapp

Moderator
Moderator
Nov 17, 2011
14,273
Joined
Nov 17, 2011
Messages
14,273
Right, I missed this detail - it's been some time I last programmed an AVR.
So in the code snippets I posted the read statements should be:

temp = PINA;
or
temp = PINB;

respectively.

Thanks for the correction.

Harald
 
Top