Maker Pro
Maker Pro

how to write c code for motor

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,700
Joined
Nov 17, 2011
Messages
13,700
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