adafruit / adafruit/Adafruit_CircuitPython_MagTag

magtag.peripherals.buttons list has a fifth element for button e (BOOT0), but not button_e_pressed; ALSO button e missing from any_button_pressed.

Open Beginner friendly
#98 0 comments 0 reactions 0 assignees View on GitHub
bug enhancement good first issue
Dominant language
Python
Stars
30
Forks
26
PR merge metrics
No merged PRs in 30d

Description

```
>>> from adafruit_magtag.magtag import MagTag
>>> magtag = MagTag()
>>> dir(magtag.peripherals)
['__class__', '__init__', '__module__', '__qualname__', '__dict__', 'deinit', 'neopixels', 'neopixel_disable', 'speaker_disable', '_neopixel_disable', '_batt_monitor', '_speaker_enable', '_light', 'buttons', 'play_tone', 'battery', 'button_a_pressed', 'button_b_pressed', 'button_c_pressed', 'button_d_pressed', 'any_button_pressed', 'light']
>>> magtag.peripherals.button
buttons button_a_pressed button_b_pressed
button_c_pressed button_d_pressed

>>> print(magtag.peripherals.button_a_pressed)
False

#MISSING
>>> print(magtag.peripherals.button_e_pressed)
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'Peripherals' object has no attribute 'button_e_pressed'

>>> buttons = magtag.peripherals.buttons
>>> print(not buttons[4].value)
False

>>> print(magtag.peripherals.any_button_pressed)
# A or B or C or D pressed:
True

#NOT INCLUDED
# E (BOOT0) pressed:
False
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the MagTag entry point shown in the issue, `adafruit_magtag.magtag.MagTag`, and inspect how `magtag.peripherals` exposes its button properties and `buttons` list. Done means button E (BOOT0) has a `button_e_pressed` property and is included in `any_button_pressed`, consistently with buttons A–D.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.