microsoft / microsoft/pxt-maker

analogWrite on most ItsyBitsy M4 analog pins not working

Open
#242 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
130
Forks
90
Avg merge
1d 14h
Merged PRs (30d)
1

Description

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)
})

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the provided forever loop on an ItsyBitsy M4, testing analogWrite on A0 and the other analog pins while comparing with A1, which is reported to work. Trace the pin and analogWrite handling in the TypeScript target and verify completion when the example produces the expected output on the affected pins.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.