Skip to content

Commit 6b33e73

Browse files
committed
Set all pins to INPUT on sketch startup
1 parent 2daed47 commit 6b33e73

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

variants/arduino_101/variant.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,8 @@ void variantGpioInit(void)
179179
PinDescription *p = &g_APinDescription[pin];
180180
SET_PIN_MODE(p->ulSocPin, p->ulPinMode);
181181
pinmuxMode[pin] = GPIO_MUX_MODE;
182+
pinMode(pin, INPUT);
182183
}
183-
//make sure the led is not lit on sketch start
184-
digitalWrite(LED_BUILTIN, LOW);
185184
}
186185

187186
void variantPwmInit(void)

0 commit comments

Comments
 (0)