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 e55978e commit 4805ca6Copy full SHA for 4805ca6
variants/ARDUINO_NANO33BLE/variant.cpp
@@ -81,6 +81,18 @@ void initVariant() {
81
82
digitalWrite(PIN_ENABLE_SENSORS_3V3, HIGH);
83
digitalWrite(PIN_ENABLE_I2C_PULLUP, HIGH);
84
+
85
+ NRF_PWM_Type* PWM[] = {
86
+ NRF_PWM0, NRF_PWM1, NRF_PWM2
87
+#ifdef NRF_PWM3
88
+ ,NRF_PWM3
89
+#endif
90
+ };
91
92
+ for (int i = 0; i < (sizeof(PWM)/sizeof(PWM[0])); i++) {
93
+ PWM[i]->ENABLE = 0;
94
+ PWM[i]->PSEL.OUT[0] = 0xFFFFFFFFUL;
95
+ }
96
}
97
98
#ifdef SERIAL_CDC
@@ -111,4 +123,4 @@ void _ontouch1200bps_() {
111
123
NVIC_SystemReset();
112
124
113
125
114
-#endif
126
0 commit comments