Describe the bug
According to the documentation for the Adafruit Metro M0 Express, Digital Pins D3-D6 as well as D8-D13 are all capable of PWM output. The analogWrite function of the MakeCode editor only allows pins A0-A5, D0, D1, D3, D4, D8, D9 and RX as output pins.
Create a new project and choose Adafruit Metro M0 Express as the target hardware
From the PINS menu on the left side, drag a red analog write pin LED to 1023 block into the green forever loop.
Click LED in the analog write block to see list of available analog write output pins. See that some are missing.
Switch to JavaScript view and change the command to pin D11 instead of LED
Expected behavior
See an accurate list of all PWM-capable pins including D3-D6 and D8-D13.
Desktop (please complete the following information):
OS: Windows 10
Browser: Chrome
Version: 79.0.3945.130
Additional context
The tooltip in the JavaScript editor indicates that pins.D3 is a PwmPin, and pins.D11 is a DigitalInOutPin
Add any other context about the problem here.
Describe the bug According to the documentation for the Adafruit Metro M0 Express, Digital Pins D3-D6 as well as D8-D13 are all capable of PWM output. The
analogWrite
function of the MakeCode editor only allows pins A0-A5, D0, D1, D3, D4, D8, D9 and RX as output pins.To Reproduce Steps to reproduce the behavior:
analog write pin LED to 1023
block into the greenforever
loop.LED
in the analog write block to see list of available analog write output pins. See that some are missing.D11
instead ofLED
Expected behavior See an accurate list of all PWM-capable pins including D3-D6 and D8-D13.
Desktop (please complete the following information):
Additional context The tooltip in the JavaScript editor indicates that
pins.D3
is aPwmPin,
andpins.D11
is aDigitalInOutPin
Add any other context about the problem here.