Skip to content

Commit 2daed47

Browse files
bigdinotechsys_maker
authored and
sys_maker
committed
Make sure LED is not lit on sketch start
-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
1 parent 6887ba3 commit 2daed47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

variants/arduino_101/variant.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ void variantGpioInit(void)
180180
SET_PIN_MODE(p->ulSocPin, p->ulPinMode);
181181
pinmuxMode[pin] = GPIO_MUX_MODE;
182182
}
183+
//make sure the led is not lit on sketch start
184+
digitalWrite(LED_BUILTIN, LOW);
183185
}
184186

185187
void variantPwmInit(void)

0 commit comments

Comments
 (0)