8000 Set GPIO digital output on digitalWrite (#203) · tymeorama/arduino-pico@793496d · GitHub
[go: up one dir, main page]

Skip to content

Commit 793496d

Browse files
Set GPIO digital output on digitalWrite (earlephilhower#203)
Fixes earlephilhower#202
1 parent 81cbf83 commit 793496d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/rp2040/wiring_digital.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ extern "C" void digitalWrite(pin_size_t ulPin, PinStatus ulVal) {
6363
DEBUGCORE("ERROR: Illegal pin in pinMode (%d)\n", ulPin);
6464
return;
6565
}
66+
gpio_set_function(ulPin, GPIO_FUNC_SIO);
6667
if (_pm[ulPin] == INPUT_PULLDOWN) {
6768
if (ulVal == LOW) {
6869
gpio_set_dir(ulPin, false);

0 commit comments

Comments
 (0)
0