Skip to content

Commit 2849807

Browse files
committed
Remove custom analogWrite handling for PWM0 and PWM3 and use the core API
1 parent eba1084 commit 2849807

File tree

3 files changed

+2
-255
lines changed

3 files changed

+2
-255
lines changed

src/Arduino_PortentaBreakout.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
3434
#include <PDM.h>
3535
#include <Portenta_Ethernet.h>
3636
#include <Ethernet.h>
37-
#include "utility/Analog/Analog.h"
3837
#include "utility/RTC/RTC.h"
3938

4039
#define LAST_ARDUINO_PIN_NUMBER LEDB + 1
@@ -198,12 +197,12 @@ class BreakoutCarrierClass {
198197
}
199198
void analogWrite(breakoutPin pin, int val) {
200199
if (pin > -1) {
201-
BreakoutPWM::analogWrite((int)pin, val);
200+
::analogWrite((int)pin, val);
202201
}
203202
return;
204203
}
205204
void analogWriteResolution(int bits) {
206-
BreakoutPWM::analogWriteResolution(bits);
205+
::analogWriteResolution(bits);
207206
}
208207
int analogRead(breakoutPin pin) {
209208
if (pin > -1) {

src/utility/Analog/Analog.cpp

Lines changed: 0 additions & 73 deletions
This file was deleted.

src/utility/Analog/Analog.h

Lines changed: 0 additions & 179 deletions
This file was deleted.

0 commit comments

Comments
 (0)