Skip to content

Commit

Permalink
Make sure LED is not lit on sketch start
Browse files Browse the repository at this point in the history
-The LED retains the last state it was in after a sketch upload
-We need to make sure its is not lit on sketch startup so that behavior
is consistent
  • Loading branch information
bigdinotech authored and sys_maker committed Mar 16, 2017
1 parent 6887ba3 commit 2daed47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions variants/arduino_101/variant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ void variantGpioInit(void)
SET_PIN_MODE(p->ulSocPin, p->ulPinMode);
pinmuxMode[pin] = GPIO_MUX_MODE;
}
//make sure the led is not lit on sketch start
digitalWrite(LED_BUILTIN, LOW);
}

void variantPwmInit(void)
Expand Down

0 comments on commit 2daed47

Please sign in to comment.