Skip to content
Snippets Groups Projects
Commit 6970b603 authored by Erik Strand's avatar Erik Strand
Browse files

Fix comments

parent 0a8a3529
No related branches found
No related tags found
No related merge requests found
......@@ -7,13 +7,12 @@ int main(void) {
// Configure led_pin as an output.
DDRB |= led_pin;
// Configure button_pin as an output.
// Configure button_pin as an input.
DDRA &= ~button_pin;
// Activate button_pin's pullup resistor.
PORTA |= button_pin;
// Nothing left to do, so just spin.
while (1) {
// Turn on the LED when the button is pressed.
if (PINA & button_pin) {
......
......@@ -23,7 +23,6 @@ int main(void) {
int bouncy_switch_state = 0;
int debounced_switch_state = 0;
// Nothing left to do, so just spin.
while (1) {
// Use the timer to count how long it's been since button_pin changed state.
if ((PINA & button_pin) != bouncy_switch_state) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment