microsoft / pxt-maker

MakeCode target for "Maker" boards (beta)
https://maker.makecode.com/
Other
116 stars 82 forks source link

analogWrite on most ItsyBitsy M4 analog pins not working #242

Open jedgarpark opened 5 years ago

jedgarpark commented 5 years ago

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)
})
wallarug commented 4 years ago

@jedgarpark is this still an ongoing issue?

jedgarpark commented 4 years ago

@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 commented 4 years ago

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

jedgarpark commented 4 years ago

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