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.
Comments and Additional Information
Have some code to share? Or additional information? Respond here:
You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.