I'm connecting an NAU7802 to a QT-Pi, I first tested with Arduino and read A/D values without any issues. I then changed to CircuitPython and can't get the example working. The REPL reads
"Line 13, in <module> Memory Error:"
Line 13 is "from cedargrove_nau7802 import NAU7802"
I'm new to CircuitPython and don't know where to start troubleshooting. The module appears to be fine comparing it to the copy at github.
Any suggestions?
NAU7802 example not working
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_carter
- Posts: 29473
- Joined: Tue Nov 29, 2016 2:45 pm
Re: NAU7802 example not working
Which specific QT Py board are you working with? (there are several different versions)
- rvklipp
- Posts: 14
- Joined: Tue May 02, 2023 11:49 am
Re: NAU7802 example not working
It's the SAMD21 board.
- adafruit_support_carter
- Posts: 29473
- Joined: Tue Nov 29, 2016 2:45 pm
Re: NAU7802 example not working
Thanks for clarifying.
How did you download the library file?
Did the library file you copied to the the CIRCUITPY/lib folder have a .py or a .mpy extension?
How did you download the library file?
Did the library file you copied to the the CIRCUITPY/lib folder have a .py or a .mpy extension?
- rvklipp
- Posts: 14
- Joined: Tue May 02, 2023 11:49 am
Re: NAU7802 example not working
I downloaded the Adafruit-circuitpython-bundle-8.x, and copied the Adafruit_Character_lcd folder to the CIRCUITPY (D:)\lib folder.
The files extension is .mpy.
The files extension is .mpy.
- adafruit_support_carter
- Posts: 29473
- Joined: Tue Nov 29, 2016 2:45 pm
Re: NAU7802 example not working
OK, that all sounds correct.
The error is relating to the NAU7802 though, not the character LCD.
The NAU7802 library is currently not in the bundle. Looks like it's in the process of being added:
https://github.com/adafruit/Adafruit_Ci ... e/pull/430
Where did you get the NAU7802 library?
The error is relating to the NAU7802 though, not the character LCD.
The NAU7802 library is currently not in the bundle. Looks like it's in the process of being added:
https://github.com/adafruit/Adafruit_Ci ... e/pull/430
Where did you get the NAU7802 library?
Please be positive and constructive with your questions and comments.