ThunderBorg on python3
Forums:
Hello,
When I run one of the examples, which uses python2, it finds the board and outputs
Loading ThunderBorg on bus 1, address 15 Found ThunderBorg at 15 ThunderBorg loaded on bus 1
But, when I ran the ThunderBorg.py file through the 2to3 translator, imported it into a python3 script, and ran it, it outputs:
Loading ThunderBorg on bus 1, address 15 Missing ThunderBorg at 15 ThunderBorg was not found Are you sure your ThunderBorg is properly attached, the correct address is used, and the I2C drivers are running? Scanning I�C bus #1 No ThunderBorg boards found, is bus #1 correct (should be 0 for Rev 1, 1 for Rev 2) No ThunderBorg was found
This is on the same pi, one after the other. Is there a version of the ThunderBorg.py file which works with python3?
Thanks,
Michael
piborg
Tue, 10/03/2017 - 15:28
Permalink
ThunderBorg script for Python 3
We do have a version of the script for Python 3 :)
You can download it here: http://old.piborg.org/downloads/thunderborg/ThunderBorg3.py.txt
Alternatively download directly to your Pi using:
You can then change your scripts from:
to
mhurst93
Fri, 10/06/2017 - 19:17
Permalink
Thanks for your quick reply,
Thanks for your quick reply, it works perfectly now.
Unfortunately, I didn't know you'd replied until now, so I got it working on my own beforehand. I've changed it to using the script you provided, as that seemed best.
Sorry for the late reply, I thought I'd get an email when I had a reply, and I should have kept checking.
piborg
Mon, 10/09/2017 - 10:37
Permalink
Email notifications
Sorry about that, the forum is supposed to send emails but we have been having some trouble with the system recently :(
We are hoping to have everything fixed and back to normal soon.
Zakna
Wed, 11/15/2017 - 12:23
Permalink
Thunderborg for python3
You guys still have that python3 script lying around somewhere? That link above doesn't seem to exist anymore.
piborg
Wed, 11/15/2017 - 12:41
Permalink
Out of date link
The script is still available, the URL has just been changed :)
You can download it here: http://old.piborg.org/downloads/thunderborg/ThunderBorg3.py.txt
Alternatively download directly to your Pi using:
I have updated the earlier post as well for anyone else looking.
Zakna
Wed, 11/15/2017 - 12:45
Permalink
Awesome, thanks for the fast
Awesome, thanks for the fast reply!