Skip to content

rename mag_tag to magtag. Fix neopixel power pin handling #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 14, 2021

Conversation

FoamyGuy
Copy link
Contributor

This renames the mag_tag.py file to magtag.py. That turned out to not require any external changes because of the way this library is structured. user-code will always import like:

from adafruit_pybadger import pybadger

And internally inside of __init__.py it figures out which device it is running on and imports from the correct subclass file.

So there should not be any user code that would have ever needed to import pybadger.mag_tag directly. I grepped the Learn Guide repo to double check and did not find any instances that would require changing.

This PR also removes the handling of NEOPIXEL_POWER pin from the magtag example as that is now handled automatically inside of the neopixel library. This change resolves: #55

I tested this version successfully on:

Adafruit CircuitPython 7.1.0-beta.1 on 2021-11-30; Adafruit MagTag with ESP32S2
Board ID:adafruit_magtag_2.9_grayscale

Copy link

@KeithTheEE KeithTheEE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on two different magtags. It performed identically and correctly on both.

The only point that stood out to me is the comments say use Buttons A, B, and C, however the silkscreen titles them D15/D14/D12 respectively. But this solves the Neopixel power pin bug and I don't know if the button naming is intentional.

@FoamyGuy FoamyGuy merged commit e5e74f6 into adafruit:main Dec 14, 2021
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 15, 2021
Updating https://github.com/adafruit/Adafruit_CircuitPython_MAX7219 to 1.5.0 from 1.4.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_MAX7219#37 from FlantasticDan/chainable-matrices
  > update rtd py version

Updating https://github.com/adafruit/Adafruit_CircuitPython_PyBadger to 3.6.1 from 3.6.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_PyBadger#56 from FoamyGuy/rename_mag_tag
  > Merge pull request adafruit/Adafruit_CircuitPython_PyBadger#54 from FoamyGuy/pybadge_lc_compatibility
  > update rtd py version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NEOPIXEL_POWER_INVERTED in use error on MagTag
2 participants