Please note: Friday June 18 is a holiday celebrating Juneteenth, please allow extra time for your order to arrive and plan accordingly.
0

PyPortal ADT7410 code read fails
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

PyPortal ADT7410 code read fails

by divinenanny on Mon Jun 07, 2021 10:58 am

I am trying this example project on my pyportal https://learn.adafruit.com/pyportal-sma ... cuitpython

I have CircuitPython 6.3.0 and the corresponding libraries all loaded. I have copied the code over, renamed thermometer.py to code.py and it runs. But then I get the following error:

Code: Select all | TOGGLE FULL SIZE
code.py output:
Set icon to  /icons/pyportal_splash.bmp
loading fonts...
setting up labels...
Traceback (most recent call last):
  File "code.py", line 63, in <module>
  File "adafruit_adt7410.py", line 80, in __init__
  File "adafruit_adt7410.py", line 113, in _read_register
  File "adafruit_adt7410.py", line 113, in _read_register
TypeError: unexpected keyword argument 'stop'


I have also tried placing only the adt7410 reading code in code.py (because all I want to learn is to read that one sensor so I can incorporate that into something else), but I still get that same error.

divinenanny
 
Posts: 2
Joined: Mon Jun 07, 2021 10:48 am

Re: PyPortal ADT7410 code read fails

by dastels on Mon Jun 07, 2021 11:06 am

Did you clean out any previous libraries before copying over the new ones?

Dave

dastels
 
Posts: 6475
Joined: Tue Oct 20, 2015 3:22 pm

Re: PyPortal ADT7410 code read fails

by divinenanny on Tue Jun 08, 2021 3:18 am

That was probably it. Deleting all lib files/folders and loading them again fixed it. Rookie mistake, thanks for the help!

divinenanny
 
Posts: 2
Joined: Mon Jun 07, 2021 10:48 am

Re: PyPortal ADT7410 code read fails

by dastels on Tue Jun 08, 2021 9:05 am

I discovered it by trial and error. Now I do a clean/recopy every time I get a new version of the bundle.

Dave

dastels
 
Posts: 6475
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.