Skip to content

Commit aff2dc0

Browse files
committed
Add analogWrite
1 parent 26f3fce commit aff2dc0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

PortentaBreakoutCarrier.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ class BreakoutCarrierClass {
189189
}
190190
return -1;
191191
}
192+
void analogWrite(breakoutPin pin, int val){
193+
if (pin > -1) {
194+
::analogWrite((int)pin, val);
195+
}
196+
return;
197+
}
192198
MbedI2C I2C_0;
193199
MbedI2C I2C_1;
194200
MbedI2C I2C_2;

0 commit comments

Comments
 (0)