Skip to content

Fixed NEOPIXEL_POWER_INVERTED in use on CP 7.0 #63

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 1 commit into from
Jul 19, 2021

Conversation

makermelissa
Copy link
Collaborator

Fixes #62. This fix addresses the "NEOPIXEL_POWER_INVERTED in use" error. I still was not able to run the example due to the MagTag rebooting, but at least it's not stopping on the Neopixel error now.

@makermelissa makermelissa requested a review from a team July 19, 2021 15:58
@makermelissa makermelissa merged commit a72f2e3 into adafruit:main Jul 19, 2021
@pjockey
Copy link

pjockey commented Jul 19, 2021

Just tried this again and get the following.

code.py output:
Traceback (most recent call last):
  File "code.py", line 35, in <module>
  File "adafruit_magtag/magtag.py", line 102, in __init__
  File "adafruit_magtag/peripherals.py", line 47, in __init__
ValueError: NEOPIXEL_POWER_INVERTED in use

Using the newest libraries date today (20210719).

@makermelissa
Copy link
Collaborator Author

Did you get it from the bundle, (or learn which grabs from the bundle) or directly from here? The bundle won't be updated until tonight.

@pjockey
Copy link

pjockey commented Jul 19, 2021

Did you get it from the bundle, (or learn which grabs from the bundle) or directly from here? The bundle won't be updated until tonight.

Downloaded the bundle from the CircuitPython website. If it waits until tonight to upload, I'll look at it again tomorrow.

@makermelissa
Copy link
Collaborator Author

Downloaded the bundle from the CircuitPython website. If it waits until tonight to upload, I'll look at it again tomorrow.

Sounds good or you can just download 2.1.1 from https://github.com/adafruit/Adafruit_CircuitPython_MagTag/releases

adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jul 20, 2021
Updating https://github.com/adafruit/Adafruit_CircuitPython_CircuitPlayground to 4.4.0 from 4.3.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_CircuitPlayground#106 from kattni/keypad-gamepad
  > Moved CI to Python 3.7
  > Added help text and problem matcher
  > Added pull request template

Updating https://github.com/adafruit/Adafruit_CircuitPython_DotStar to 2.1.0 from 2.0.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_DotStar#56 from kattni/pixelbuf-update
  > Moved default branch to main
  > Moved CI to Python 3.7

Updating https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel to 6.2.0 from 6.1.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_NeoPixel#115 from kattni/pixelbuf-update
  > Moved default branch to main
  > Moved CI to Python 3.7

Updating https://github.com/adafruit/Adafruit_CircuitPython_RFM9x to 2.2.0 from 2.1.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_RFM9x#63 from jerryneedell/jerryn_crc
  > Moved default branch to main
  > Moved CI to Python 3.7
  > Added help text and problem matcher
  > Added pull request template
  > "Increase duplicate code check threshold "

Updating https://github.com/adafruit/Adafruit_CircuitPython_MagTag to 2.1.1 from 2.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_MagTag#63 from makermelissa/main
  > Moved CI to Python 3.7
  > Added help text and problem matcher
  > Added pull request template
@pjockey
Copy link

pjockey commented Jul 20, 2021

Update the libraries from 20210720 and the error " NEOPIXEL_POWER_INVERTED in use" has been fixed, but the screen is not as is was prior to CP 7.
IMG_20210720_1319198

Date is wrong, and the screen was an all white background. Am I missing a library?

Sleeping for 10 hours, 33 minutes
Traceback (most recent call last):
  File "code.py", line 266, in <module>
  File "code.py", line 165, in go_to_sleep
  File "adafruit_magtag/magtag.py", line 118, in exit_and_deep_sleep
  File "adafruit_magtag/peripherals.py", line 120, in neopixel_disable
AttributeError: 'Peripherals' object has no attribute '_neopixel_disable'

Code done running.

@makermelissa
Copy link
Collaborator Author

I'm not sure about the inverted screen as that is handled in CircuitPython, but the error at the end looks like something related to this fix.

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.

MAGTAG NEOPIXEL fails with 7.0
3 participants