Connect with us

how to write c code for motor

Discussion in 'Microcontrollers, Programming and IoT' started by vead, Apr 9, 2012.

Scroll to continue with content
  1. Harald Kapp

    Harald Kapp Moderator Moderator

    12,458
    2,985
    Nov 17, 2011
    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
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-