adafruit / Adafruit_CircuitPython_Bundle

A bundle of useful CircuitPython libraries ready to use from the filesystem.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exact location to copy files of circuitPython Bundle

sharoseali opened this issue · comments

To use the bundle download the zip (not source zip) from the latest release, unzip it and copy over the subfolders, such as lib, into the root of your CircuitPython device. Make sure to indicate that it should be merged with the existing folder when it exists.

@ladyada
Hi! i am working on nvidia jetson TX2 and i want to use circuit python. The information provided to install the circuit python files do not confirms exact location . There are 2 to 3 lib folders, in which lib folder you i copy all these files . please mention it.
Q2: As i want to use adafruit pca9685 for servo control. please also explain this line
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-bundle --library_location libraries --library_depth 2

As i am using Nvidia jetson TX2 with connecting Adafruit pca9685, will this library help me in controlling my servos on PWM in python?.. kindly answer !!
regards rose

@sharoseali,

I'll try and help answer what I think may be causing some confusion.

To use the bundle download the zip (not source zip) from the latest release, unzip it and copy over the subfolders, such as lib, into the root of your CircuitPython device. Make sure to indicate that it should be merged with the existing folder when it exists

The installation steps you quoted are for microcontrollers with CircuitPython firmware installed. From reading up on the Jetson TX2, you are most likely running Linux [Ubuntu] as the OS which provides full Python (formally known as CPython). Adafruit developed a wrapper Python module that allows CircuitPython Libraries to be used elsewhere, called Blinka. For instance, it allows CircuitPython libraries to be used with CPython on the Raspberry Pi. To use them, you would install the modules with pip, as noted here.

i am working on nvidia jetson TX2 and i want to use circuit python. The information provided to install the circuit python files do not confirms exact location . There are 2 to 3 lib folders, in which lib folder you i copy all these files . please mention it.

With the above information about Blinka module, it currently doesn't support the Jetson TX2. Having no experience with the Jetson, I can't confirm if support is possible or not. You could file an issue on the Blinka repository and someone may explore it (Adafruit or otherwise).

Q2: As i want to use adafruit pca9685 for servo control. please also explain this line
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-bundle --library_location libraries --library_depth 2

That line is for the script that assembles the bundles, as seen in the releases page. It is noted here in case anyone wants to build their own bundle, but is not required to use the libraries.

As i am using Nvidia jetson TX2 with connecting Adafruit pca9685, will this library help me in controlling my servos on PWM in python?

My best advice for this would be to review either of the following Adafruit libraries, and update them to use any available communication/protocol libraries on the Jetson:

EDIT: I meant to drop a link to the Blinka Learn Guide which could also be of some assistance.

https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/overview

right now we don't have a blinka implementation for the NVidia Jetson TX2 - so this may all be moot. If you're interested in adding one, that would be awesome and very much appreciated, we don't own one of these boards. You'd add your code to the Adafruit Blinka repo. Then on linux you'd use pip to install :)