diff --git a/src/utility/nano_rp2040_support.cpp b/src/utility/nano_rp2040_support.cpp index 2d335b7..851f8e7 100644 --- a/src/utility/nano_rp2040_support.cpp +++ b/src/utility/nano_rp2040_support.cpp @@ -51,7 +51,10 @@ PinStatus digitalRead(NinaPin pin) void digitalWrite(NinaPin pin, PinStatus value) { - WiFiDrv::digitalWrite(static_cast(pin), static_cast(value)); + if (value == LOW) + WiFiDrv::digitalWrite(static_cast(pin), 1); + else + WiFiDrv::digitalWrite(static_cast(pin), 0); } int analogRead(NinaPin pin)