Circuit Python; how to import file

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
RainySun
 
Posts: 73
Joined: Thu Nov 18, 2021 2:55 pm

Circuit Python; how to import file

Post by RainySun »

Hey, I have a question regarding how to import a file. I am using Mu-editor. Below is the code, but I do not know how to import cedargrove (highlighted). Link below is where I can download the file from but not sure how to import the file. Link:

https://github.com/CedarGroveStudios/AD ... aster/code
Capture.PNG
Capture.PNG (18.29 KiB) Viewed 1078 times

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Circuit Python; how to import file

Post by mikeysklar »

Are you working with a mounted Feather M4?

You need to download the library and place the module file in /Volumes/CIRCUITPY/lib of your mounted M4.

Code: Select all

wget https://raw.githubusercontent.com/CedarGroveStudios/AD9833_FeatherWing/master/code/cedargrove_ad9833.py
cp cedargrove_ad9833.py /Volumes/CIRCUITPY/lib
 

User avatar
RainySun
 
Posts: 73
Joined: Thu Nov 18, 2021 2:55 pm

Re: Circuit Python; how to import file

Post by RainySun »

Thank you. That worked!!!

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Circuit Python; how to import file

Post by mikeysklar »

Excellent. Thank you for the confirmation that it is working now.

Locked
Please be positive and constructive with your questions and comments.

Return to “Itsy Bitsy Boards”