On Thu, 10 Dec 2020 21:28:55 -0700, in gmane.comp.hardware.beagleboard.user Darren Freed <[email protected]> wrote:
>AFAIK CircuitPython is Adafuit's port of micropython ><http://micropython.org>, meant for embedded devices. What you are looking >for is the Adafruit_BBIO <https://pypi.org/project/Adafruit-BBIO/> library. > >AFAIK CircuitPython is Adafuit's port of micropython ><http://micropython.org>, meant for embedded devices. What you are looking >for is the Adafruit_BBIO <https://pypi.org/project/Adafruit-BBIO/> library. > Adafruit has developed an interface package -- blinka -- designed to permit use of circuitpython libraries on multiple Linux-based boards: R-Pi, BBBlack, PocketBeagle... cf: https://github.com/adafruit/Adafruit_Blinka/tree/master/src/adafruit_blinka/board The interface package uses the board specific libraries (adafruit-bbio, equivalent on R-Pi) behind the scenes, allowing code to be written to the common CircuitPython libraries. Adafruit are slowly migrating their non-CircuitPython libraries (for example: Adafruit_bno055) over to CircuitPython (Adafruit_circuitpython_bno055) My suggestion for the OP is to use an independent SSH client and to get OUT of the cloud9 environment. Try writing the program and running it from a direct login to the beagle. debian@beaglebone:~$ cat bno055.py #!/usr/bin/python3 import time import board import busio import adafruit_bno055 help(adafruit_bno055) debian@beaglebone:~$ debian@beaglebone:~$ python3 bno055.py Help on module adafruit_bno055: NAME adafruit_bno055 DESCRIPTION ``adafruit_bno055`` - Adafruit 9-DOF Absolute Orientation IMU Fusion Breakout - BNO055 ======================================================================================= This is a CircuitPython driver for the Bosch BNO055 nine degree of freedom inertial measurement unit module with sensor fusion. * Author(s): Radomir Dopieralski CLASSES builtins.object BNO055 BNO055_I2C BNO055_UART NOTE: no error on the import of adafruit_bno055 (and yes, I did ensure I'd uninstalled the non-circuitpython adafruit_bno055 before installing the circuitpython version) -- though I also have to admit that I installed using "sudo pip3..." to make it a systemwide install, not user specific. If it fails from the direct login, try installing the circuitpython/blinka libraries using sudo -- to make them systemwide. -- Dennis L Bieber -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/1vd7tfplun5ko0341ojonerd3mm6oqh1ns%404ax.com.
