Programming: Setting up an LED for PORTB Pin 1

First the data direction register for port b (DDRB) and pin 0 must be set for output since the LED is be controlled. The high or low state of that pin is already at a low state (by default) and that is how it need to be at the initialization.



Back to blog

Leave a comment

Please note, comments need to be approved before they are published.