-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
analog write errors on Circuit Playground Express A0 (true analogue) #1061
Comments
I tried MakeCode beta on 28-May-2019 and same issue there.
|
Is there any ETA on this? |
I saw someone mention a "strange result" from analogue writes to A0 in AnalogWrite in MS MakeCode for pins A3, A6, A7, I'll ask what this was... |
I can reproduce the analogWrite problem with analog writes on A0 using the program in the original report. It's reproducible in both MakeCode + MakeCode beta. The error code on mine is b0001011010 / 90 (PANIC_CODAL_HARDWARE_CONFIGURATION_ERROR) rather than 909. Other analog pins (A1, A2) are fine; it's just A0 that causes the panic. MakeCode: Makecode Beta: |
I did some more sleuthing. The panic is a regression between 1.2.13 and 1.3.1. https://makecode.adafruit.com/v1.2.13#editor - code runs: https://makecode.adafruit.com/v1.3.1#editor - same code causes panic: |
Describe the bug
Very simple programs using
analog write
block to set an analogue value on a Circuit Playground Express board's A0 pin/pad (true analogue, not PWM) error immediately with a909: PANIC_INVALID_ARGUMENT): the argument value is out of range or the type or format is invalid
as indicated by colourful red/blue NeoPixels. D13 flashes too. MakeCode version is:To Reproduce
Steps to reproduce the behavior:
Expected behavior
A constant voltage appear on the
A0
pad without error.Screenshots
See code on https://makecode.com/_RDm03xPfVdz1 - this is the javascript code cut and paste from the MakeCode editor.
Desktop (please complete the following information):
Additional context
I see there's a discussion about
analog write
on #604 and in particular a mention ofA0
and "Michal's fixes" in #604 (comment) from Apr 2018.The text was updated successfully, but these errors were encountered: