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

(Adafruit_Python_DHT - Raspberry Pi) in get_platform RuntimeError: Unknown platform

I have a Raspberry Pi 4 connected with a DHT22 sensor, and I want to read data from my sensor. So I installed the library Adafruit_DHT sudo pip3 install Adafruit_DHT then, I navigate to the directory Adafruit_Python_DHT/examples/, and then, since I…
Tms91
  • 3,456
  • 6
  • 40
  • 74
1
vote
0 answers

How to Disable Hardware SPI Chip Enable/Chip Select on Raspberry Pi?

I'm setting up a Raspberry Pi 4b with a number of Adafruit chips, and thus have used their CircuitPython library to control SPI communication. They've conveniently set up a way to use any GPIO pins as chip selects, but as a result I had no idea that…
tanabs
  • 21
  • 2
1
vote
1 answer

Setting up Adafruit PDM with Rapsberry Pi 4

I am relatively new to working with Raspberry pi, Adafruit products and python coding. I have been working on setting up a Adafruit PDM Microphone connected to my RPi 4 and am attempting to running it on python 3. Adafruits tutorials have been…
1
vote
0 answers

Gulp Removable Drive "dest" on windows error

The task is simple... write some CircuitPuthon code but have it under git control. The way CircuitPython works, the IoT device shows up as a drive in windows... you update the .py files, the device reboots and reloads. However, I don't want…
Samurai Ken
  • 810
  • 8
  • 25
0
votes
0 answers

how do i get usb_hid on micropython

So there is a module named usb_hid on CircuitPython but its not on MicroPython. Is there a way to get usb_hid on MicroPython? It isnt in the lib folder of CircuitPython. I even tried displaying all the modules in MicroPython but usb_hid wasnt there.…
0
votes
0 answers

Can't flash circuitpython program to rpi pico using ampy

I was trying to figure out how to make code persist on the pico and stumbled upon ampy. When trying to flash my pico, I was met with an error (exact output below). I'm guessing it might be something permission related but I really don't know if…
0
votes
0 answers

Jetson.GPIO is installed but cannot be imported?

i’m working in a virtual environment with all my packages (blinka, servokit, Jetson.GPIO) have been installed successfully, but when i try to import Jetson.GPIO, it keep telling me that i have not installed the library. Please help me with this…
0
votes
1 answer

Whys there no module named numbers in my circuitpython raspberry pi pico?

So i was testing my TFT but when i uploaded the code import board import displayio import terminalio from adafruit_ili9341 import ILI9341 # Initialize ILI9341 display spi = board.SPI() tft_cs = board.D9 tft_dc = board.D10 display_bus =…
0
votes
0 answers

ValueError: invalid syntax for integer with base 10 while using adafruit_requests in Circuit Python

I am trying to build a simple notification application to detect when my letter box is opened and send a notification via pushbullet using Raspberry Pico W. This is the application: import os import adafruit_requests import board import…
Pitto
  • 8,229
  • 3
  • 42
  • 51
0
votes
1 answer

Adafruit LoRa RFM96W payload limit is 252 bytes but I want to send 512 bytes of data

So basically I have a numpy array, its shape is (8,64) after array.tobytes() and len(array) is 512. And the send() function in the adafruit_rfm9x library has a payload limit of 252 bytes. Is there any way to do it? Parameter in both…
0
votes
0 answers

SD Card on Circuitpython, Adafruit Feather M0

I am attempting to run the following code as a prelude to writing data to an SD card on an Adafruit Feather M0 Adalogger using Thonny as my IDE. According to https://github.com/adafruit/circuitpython/issues/317, the Adalogger did not always have SD…
Marius
  • 115
  • 5
0
votes
0 answers

Stream deck becomes unresponsive on key combination

I built a stream deck through which I make keyboard inputs with CircuitPython: import time import board import digitalio import usb_hid from adafruit_hid.keycode import Keycode from adafruit_hid.keyboard import Keyboard def press_windows_d(): …
0
votes
0 answers

Saving a captured image using OV7670 camera and Raspberry Pi Pico error

I am trying to save the captured images for OV7670 camera module using Raspberry pi pico.I have written a code in CircuitPython to save the image in bmp format.But when i try to download the image from pico and view, i am getting a pixelated image.I…
arbbaz
  • 1
  • 1
0
votes
1 answer

Implementing DST and time zones with python

def grabtime(dst): global sec global minute global hour global day global month global year gps.update() sec = gps.timestamp_utc.tm_sec minute = gps.timestamp_utc.tm_min hour = gps.timestamp_utc.tm_hour + dst …
0
votes
1 answer

ValueError: object not in sequence

I'm using CircuitPython to draw text and shapes on an LCD, which works. I detect interaction (a rotary encoder) and want to change a shape's colour, when I detect a certain state. This also works but I have created a function to remove the shape and…
Greg
  • 195
  • 1
  • 13