pxt-maker icon indicating copy to clipboard operation
pxt-maker copied to clipboard

analogWrite on most ItsyBitsy M4 analog pins not working

Open jedgarpark opened this issue 6 years ago • 4 comments

This code doesn't run properly on any analog pin other than A1:

    pins.A0.analogWrite(0)
    pause(500)
    pins.A0.analogWrite(198)
    pause(500)
    pins.A0.analogWrite(1023)
    pause(500)
})

jedgarpark avatar Sep 06 '19 17:09 jedgarpark

@jedgarpark is this still an ongoing issue?

wallarug avatar Jan 08 '20 12:01 wallarug

@wallarug oops, I grabbed an ItsyBitsy to test this on and grabbed an M0 instead of an M4 -- I'll test it later today when I'm back at my workshop.

jedgarpark avatar Jan 08 '20 16:01 jedgarpark

there is still odd behavior from the analog out pins, yes.

jedgarpark avatar Jan 09 '20 06:01 jedgarpark

here's an example: https://makecode.com/_5as1q3WLH3sU This doesn't light an LED plugged into the board.

jedgarpark avatar Jan 09 '20 06:01 jedgarpark