We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8169b0 commit e24b38aCopy full SHA for e24b38a
src/utility/nano_rp2040_support.cpp
@@ -51,7 +51,10 @@ PinStatus digitalRead(NinaPin pin)
51
52
void digitalWrite(NinaPin pin, PinStatus value)
53
{
54
- WiFiDrv::digitalWrite(static_cast<uint8_t>(pin), static_cast<uint8_t>(value));
+ if (value == LOW)
55
+ WiFiDrv::digitalWrite(static_cast<uint8_t>(pin), 1);
56
+ else
57
+ WiFiDrv::digitalWrite(static_cast<uint8_t>(pin), 0);
58
}
59
60
int analogRead(NinaPin pin)
0 commit comments