microsoft / microsoft/pxt-maker

Analog read not working on Circuit Playground Bluefruit

Open
#318 2 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.