adafruit / adafruit/Adafruit_BLE_PinIO

Pin mode change triggers incorrect pin values update

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
23
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Changing the mode of any non-PWM-capable pin causes Arduino to send an incorrect update for pin values. Seems like StandardFirmata is setting the stored pin values incorrectly after the mode change and then calling sendDigitalPort.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the StandardFirmata handling for mode changes on non-PWM-capable pins and the subsequent sendDigitalPort call. Reproduce the issue on Arduino, inspect the stored pin values before and after the mode change, and confirm that the sent digital update reflects the actual pin values.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.