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
7
votes
4 answers

How can I make the Raspberry Pico not automount as USB storage while using Circuit Python

I am using Circuit Python on a Raspberry Pi Pico to give me hardware buttons for keyboard shortcuts. I am using Circuit Python as opposed to MicroPython because it has the USB_HID library. I don't want the Pico to automatically mount as USB storage…
4
votes
3 answers

Gathering temperature from raspberry pi (DHT22) through api failes on second attempt

I have a DHT22 connected to my raspberry pi 4 model B, connected like this: And I wrote a small script for the raspberry pi that is supposed to get the temperature and the humidity. I made this script available through the ip address of my local…
user3478148
  • 433
  • 1
  • 8
  • 26
3
votes
1 answer

Use variable from While True Loop in another file

I have a main file fileA.py that controls the lighting in my radio studio based upon GPIO triggers. The part I'm concerned about is in a While True loop as below: While True: #other triggers for other things unrelated if GPIO.input(25) ==…
3
votes
0 answers

Plenty of reading errors in Python with Adafruit Library for DHT22 on a Raspberry Pi Zero W

I'm using a DHT22 temperature and humidity sensor with a Raspberry Pi Zero W V1.1 to log temperature and humidity. I use Python and Adafruit library (https://github.com/adafruit/Adafruit_CircuitPython_DHT) and even that I'm able to read the data, I…
3
votes
1 answer

Can circuitpython libraries be imported and used in micropython?

I am researching on micropython to use for an IoT project for school using nodeMCU esp8266. one of the use cases requires the device to receive IR signal from an Aircon remote control and save it as well as being able to transmit this code using and…
2
votes
1 answer

Issue to installing module in Thonny (Python text editor)

I downloaded Thonny (which is a text editor for python) for using my Raspberry Pi Pico, and I tried to install a module in "Manage packages", when I began the installation, this error line code appeared: ERROR: Can not combine '--user' and…
2
votes
0 answers

Python BLE Bleak Device not Found

I'm trying to use the Adafruit_CircuitPython_BLE_iBBQ python library (see https://github.com/adafruit/Adafruit_CircuitPython_BLE_iBBQ) to connect to the INKBIRD Smart Wireless BBQ Thermometer. I have used conda and the circuitpython docs to…
2
votes
0 answers

I2C LCD Library for PCF8574 through ft232h on Raspberry Pi

I'm completely lost on how to even get this to work. I have a usb ft232h breakout board that is suppose to support i2c as well as gpio. I can get basic gpio devices to work just fine however I'm having a ton of issues regarding the I2C LCD that's …
nullmage
  • 145
  • 1
  • 3
  • 8
2
votes
1 answer

CircuitPython supervisor.runtime.serial_bytes_available still True after reading

I'm working on a project involving a Node website and an Adafruit 8x8 button matrix using the Feather M4 Express microcontroller and CircuitPython. I am trying to sort out clean serial communication between the website and the button grid via…
2
votes
1 answer

How can I get VSCODE Pico-go and CircuitPython extension commands to work

I have installed pico-go extension in VSCode. When I do any View>Command Palette>Pico-Go > Help > Show Pico Pin Map... I always get Command 'Pico-Go > Help > Show Pico Pin Map' resulted in an error (command 'picogo.extra.pins' not found). I get a…
2
votes
1 answer

Circuit Python MQTT Exception Block

I'm using the Adafruit Circuit Python MQTT library and am trying to catch the errors being generated. while True: try: # Poll the message queue mqtt_client.loop() except (ValueError, RuntimeError, MMQTTException) as e: …
Jason Small
  • 1,064
  • 1
  • 13
  • 29
2
votes
2 answers

How to pass I2C addresses to Adafruit CircuitPython code? (Running ADS1115)

I'm trying to run two Adafruit ADS1115s off of one Raspberry Pi, using two I2C addresses (0x48, 0x49). The address for each device can be set by tying the ADDR pin high (0x49) or leaving it floating (default, 0x48). I've confirmed that each board…
2
votes
2 answers

Can I set the address of an i2c LCD in CircuitPython for something other than 20?

This is pretty Adafruit CircuitPython specific, hence the one and only CircuitPython tag I'm playing around with a Metro Express M0 board and trying to get it to display on a Jansane 16x2 1602 LCD with CircuitPython. I'm trying to adapt these…
Dribbler
  • 4,343
  • 10
  • 33
  • 53
1
vote
0 answers

CircuitPython library usb_midi not found

I am making a project with midi. I have installed circuit python using the following article https://gallaugher.com/makersnack-installing-circuitpython-on-a-raspberry-pi/ When I try to import usb_midi I get this error: Traceback (most recent call…
Ryan LeRoy
  • 19
  • 2
1
vote
0 answers

How to transfer images between two Raspberry Pi Pico over SPI?

I'm doing a hobby project and I have a task to make an exchange of information between two Raspberry Pi Pico. I want to take an image from the memory of Pi Pico #1 and send it using SPI to the memory of Pi Pico #2. I wrote CircuitPython code for…
Anton9101
  • 11
  • 3
1
2 3
10 11