Questions tagged [adafruit-circuitpython]

Use of the CircuitPython language and libraries on supported hardware, not just Adafruit boards and devices.

CircuitPython is derived from MicroPython through the support of Adafruit to simplify the low-level access to many standalone microcontrollers by programming in Python directly on the device, without the need for an IDE. Extensive libraries allow for the easy use of add-on devices from several manufacturers.

For great community support also checkout Adafruit's Discord Server or Forums

156 questions
1
vote
2 answers

Toggling a value during a loop without time.sleep()

I'm trying to make a toggleable value in my program, during a loop. I can't use time.sleep() in the program, as I can't have the program stopping completely (so that you can't press buttons during this time). I could just do this: while True: if…
1
vote
0 answers

Adafruit Library Import Error in Thonny despite being added

I am currently working on a project where I need to convert a analog signal to a digital one therefore I am using an ADS1115 ADC Converter. This converter is connected to my Raspberry Pi Pico on a bread board. I am trying to run a basic test script…
YungT
  • 11
  • 2
1
vote
1 answer

AttributeError: module 'board' has no attribute 'D18' - Adafruit - Python

I'm trying to connect my BeagleBone Black with DHT11 sensor. I'm following the Adafruit guide they provide, but on script run: import board import adafruit_dht import time stdin, stdout, stderr = bbb.exec_command('echo out >…
1
vote
1 answer

Unable to uninstall setuptools to reinstall it

I’m trying to set up my Raspberry Pi, and blinka is not installing, and I have been backtracking to reinstall my setuptools since I have the error where the board is not importing. And I am receiving an error: 13 permission denied…
1
vote
1 answer

Streaming mp3 audio from a URL in circuitPython

I want to stream mp3 audio from a URL using the Raspberry Pi Pico W. This is my code: import adafruit_requests import wifi import socketpool import ssl import board import audiomp3 import audiobusio import os audio = audiobusio.I2SOut(board.GP10,…
1
vote
0 answers

uninit a pin that I have no reference to

def f(): led = digitalio.DigitalInOut(board.LED) f() After I called f() pin was initialized, if led was a global variable I could simply do led.uninit(). But how do I uninit the pin that went out of scope? Calling…
exebook
  • 32,014
  • 33
  • 141
  • 226
1
vote
0 answers

Subclassing weird behavior in CircuitPython

Some background: In MicroPython there is a class called Pin which controls I/O pins. In CircuitPython a similar class is called DigitalInOut. So for compatibility I wrote this simple class. Unfortunately, something goes wrong with my implementation.…
ishahak
  • 6,585
  • 5
  • 38
  • 56
1
vote
0 answers

On Circuitpython, how to decompress files from tar or gzip file?

I can use utarfile.py to untar a file on Micropython. But for circuitpython, even the latest 8.0.0 beta2. There is no circuitpython version of utar, gzip library, or something like that. If I use the uarfile.py, there is also no uctypes modules on…
oneroan
  • 121
  • 4
1
vote
1 answer

bit manipulation in CircuitPython

I've to perform bit-level operations using CircuitPython, like extracting and manipulating 3 bits from a bytes() object. In normal Python I use the Bitarray library. Is there an equivalent for CircuitPython? Thanks.
mik3.rizzo
  • 65
  • 7
1
vote
1 answer

"No module name adafruit_servokit"

I am working on Jetson Nano and trying to control servo motors. I am using PCA9685. I have installed all the pre-requisites for that sudo pip3 install adafruit-circuitpython-servokit Faced an error called SyntaxError: future feature annotations is…
X Z
  • 13
  • 3
1
vote
1 answer

Is it possible to create a delay of less than 0.001 seconds using circuitpython?

hardware: raspberry pi pico language: adafruit-circuitpython TL;DR: 0.001 sec is the maximum precision that time.sleep() can perform. how can we get over it, using circuitpython? The 'utime' library works only on micropython... The long story: look…
1
vote
1 answer

How to fix pulseio module error in circuitpython on raspberry pi Pico?

Hello i use a raspberry pi Pico with RP2-80 20/34 P64M15.00 TTT chip with circuitpython 7.3.1 programing language and when i try to use pulseio module to capture a signal from a IR sensor i get that error,how can i fix this? This is my code: import…
1
vote
1 answer

Writing to a specific register in circuitpython

Seems like https://docs.micropython.org/en/latest/library/stm.html#stm.mem32 can be used in micropython, what can be the equivalent in circuitpython or is it not possible? I am trying to write to the specific register of pi pico to disable some…
Behlül
  • 3,412
  • 2
  • 29
  • 46
1
vote
0 answers

Micropython with PN532 V3 Elechouse

I have a ESP32S with micropython installed and I have a PN532 from Elechouse to read NFC tags. Is there any possible way to combine these two together? I've only found information about Adafruit PN532 NFC/RFID Breakout and PN532 NFC/RFID Shield on…
1
vote
0 answers

problems installing adafruit-blinka on raspberrypi zero 2w

Background I am trying to install some needed dependencies on a raspberry pi zero2w and am running into an issue with the adafruit bno055 library, specifically its dependency adafruit-blinka. Due to the nature of the project the pi can only connect…
1
2
3
10 11