Tuesday, 5 April 2016

avr - How do I read digital input on ATmega16?



What do I have to do to read a digital input (pushbutton) on ATmega16? Do I have to enable pullup-resistors or can I use a 10 kohm one? What would some simple code be be? Just a simple 'Turn the LED on when it's pressed thing'.


Is there a beginner's tutorial? I have tried googling and AVR Freaks, but everything just evolves into a fight there and I don't get my answer. I really haven't found any tutorials about this stuff. Tons of specific things but nothing simple about my AVR microcontroller...




No comments:

Post a Comment