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
0
votes
1 answer

Is there a way to move a mouse to exact coordinates using CircuitPython?

I am using a Raspberry Pi Pico to move my mouse to an absolute position on a button press. However, I have noticed mouse.move moves your current mouse position by x and y units, but I want to change my mouse position to be exact and not based on the…
0
votes
0 answers

How to code ADAfruit Clue to store sensor data in the Flash memory or RAM?

Using ADAfruit clue and coding it via the Arduino IDE to run and print Acceleration readings using the Accel+Gyro sensors we have in the ADAfruit Clue board. We can print the instantaneous acceleration readings on the Clue screen and also on the…
0
votes
0 answers

Set circuitpython board_id so I can run\debug within pycharm

I have code running on a custom RP2040 microcontroller board. I want to port the circuitpython code to a pycharm project for debugging (without the RP2040 microcontroller board not hooked up). I have installed the circuitpython-stubs and other…
0
votes
1 answer

circuitpython set_ipv4_address issue pico w

Getting the following error on set_ipv4_address line: TypeError: extra positional arguments given Code is below. Creating ipaddress objects as specified in the documentation for the wifi module. ipaddress objects are created correctly. dic = {} with…
tal
  • 3
  • 1
0
votes
0 answers

Take pictures from Thermal Camera MLX90640 live video?

I am currently using a thermal camera (MLX90640) that is showing a live video of heat. What I want to do, however, is showcase the view of the camera and data from cartesian to polar. I know there are ways to change pictures accordingly, but is…
0
votes
1 answer

Using time.monotonic function to control an LED matrix in CircuitPython

I'm having trouble wrapping my head over using time.monotonic() to get a group of LEDs to turn on every half second and turn off every half second repeatedly. These LEDs are connected through I2C with a matrix driver board and not GPIO pins on a…
Fred
  • 11
  • 1
0
votes
0 answers

Why can't I detect a connected I2C device to my Feather S2 board?

I am trying to connect this device to my feather S2 board using the GND, 3v3, SDA, and SCL pins. I'm running this simple script on my feather board: import time import board i2c = board.I2C() while not i2c.try_lock(): pass try: while…
Z-Man Jones
  • 187
  • 1
  • 12
0
votes
0 answers

How can I convert serial data into an I2C readable format using the Mikroe RS-232 to I2C click

At a high-level, I am trying to convert serial data coming off of an RS-232 cable so that an I2C device can read it. I am not married to any one component or solution but the transmitting device, a voltage controller, will only send via serial, and…
Z-Man Jones
  • 187
  • 1
  • 12
0
votes
0 answers

registering when two buttons are held on NeoTrellis in Python/Blinka

I am using 8 Adafruit NeoTrellis boards https://www.adafruit.com/product/3954 running into a Raspberry pi 3B+ using python/blinka to build an instrument. Each board has 16 led buttons so I have 128 total (16 across 8 down). I am trying to figure out…
0
votes
0 answers

MicroPython imports only working "sometimes"

I'm trying to read the AHT10 sensor using my Raspberry Pi Pico W with MicroPython. My folder structure looks like this: AHT10.py (my main file) libs/ - AHTx0.py (my library) In AHT10.py I import the library like this from libs.AHTx0 import…
0
votes
0 answers

How to read text from a raw Dropbox text file in CircuitPython?

I am trying to read a text file from Dropbox on a Raspberry Pi Pico with CircuitPython using adafruit_requests. The file should be available to view and download "for everybody who has the link". When I enter the url with ?raw=1, it leads to a…
0
votes
0 answers

circuitpython board library error (i got a raspberry pi pico)

Traceback (most recent call last): File "", line 1, in File "C:\Users\Coin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\board.py", line 291, in…
0
votes
0 answers

Out of sequence output

I built a little toy for my kid who is fascinated by gadgets and lights. It's a box with 6 LEDs and 2 buttons. Push a button, an LED turns on, press it again, another lights up, etc. Press the other button and one light turns off...etc. A weird…
0
votes
0 answers

how to change stepper direction through limit switch

I am working on a project and am trying to write code for this project in circuitpython on a esp32 s2 board. Currectly I don't have the hardware setup ready to function so I can't test codes I've written. So all I have to base my findings on are…
0
votes
1 answer

Circuitpython can't find port Seeed XIAO nRF52840 Sense

I have a Seeed XIAO nRF52840 Sense and it had been working fine with circuit python, but one time when I turned it on, circuit python gave this error message: Couldn't find the device automatically. Check the connection (making sure the device is…