Skip to content

Commit 3aed2a4

Browse files
committed
Add analogWriteResolution
1 parent 4c3d6e2 commit 3aed2a4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

PortentaBreakoutCarrier.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ class BreakoutCarrierClass {
198198
}
199199
return;
200200
}
201+
void analogWriteResolution(int bits) {
202+
BreakoutPWM::analogWriteResolution(bits);
203+
}
201204
int analogRead(breakoutPin pin) {
202205
if (pin > -1) {
203206
int val;

utility/portentaBreakoutAnalog.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,5 +175,6 @@ class HRTIMPWMClass {
175175

176176

177177
void analogWrite(pin_size_t pin, int value);
178+
void analogWriteResolution(int bits);
178179

179180
}

0 commit comments

Comments
 (0)