microsoft / microsoft/pxt-maker
Analog read not working on Circuit Playground Bluefruit
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 130
- Forks
- 90
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 1
Description
Describe the bug
None of the analog read pins seem to be working for me.
To Reproduce
I hooked up a 10k pot to 3v3, GND, and A3 (tried them all eventually) then ran the code below. It never changed the graph as I turned the pot.
forever(function () {
light.graph(pins.A3.analogRead(), 255)
})
Expected behavior
Graph level changes as pot is turned.
Desktop (please complete the following information):
- OS: mac os Catalina 10.15.7
- Browser: Chrome 86.0.4240.80
-Maker MakeCode Version:
MakeCode Maker (Cortex class) version: 0.13.60
Microsoft MakeCode version: 6.4.5
codal-nrf52840-dk runtime version: v1.1.7
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported Circuit Playground Bluefruit setup with a 10k potentiometer and the provided pins.A3.analogRead() example, then compare the behavior across the analog pins mentioned. The issue is done when turning the potentiometer changes the light.graph level consistently on the supported pins.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100