Questions tagged [rp2040]

67 questions
0
votes
0 answers

Accesing RP2040 Nina module GPIO pins from MicroPython

I'm using MicroPython v1.19.1 for the RP2040 Connect board as described Here and so far the WiFi is working as well as the IMU. So far so good. What I haven't figured out is how do I access the three GPIO pins on the NINA module that are hooked to…
wz2b
  • 1,017
  • 7
  • 24
0
votes
1 answer

Button Inputs and polling I2C data in While loop

How can I handle button inputs in a while loop and at the same time refresh i2c data in a timely manner? A while loop that watches for changes on the button pins can be run very quickly so that it is responsive, but I also want to update the i2c…
em-steven
  • 5
  • 1
0
votes
1 answer

RP2040-Zero Not Blinking

so I am working on this project right now that is meant to connect an rp2040 zero to a 1.44" tft display using circuit python. However, when trying to run examples and basic code from adafruit's own website, none of it worked. After doing some work…
0
votes
0 answers

Is it possible to pass hex BSSID value to the wlan.connect function?

Background/aims: I'm trying to get my Raspberry Pi Pico Wh connected to my mesh wi-fi network for a star wars themed notification light project I'm working on. I'm only able to get it connected when I specify a BSSID of the access point I want it to…
0
votes
0 answers

Different UART port on rp2040

How do I configure non-standard UART pins on the Raspberry Pi Pico in a Rust project? I'm following the Rust rp2040-project-template and, using another Picoprobe, can see log messages in the terminal as the onboard LED blinks. I gather it's…
eletvon
  • 35
  • 3
0
votes
0 answers

Semihosting with Pico SDK on RP2040

I am attempting to set up ARM-Semihosting to free up the use of the USB and Uart ports on my project. I am using the baremetal Wizio-Pico platform for Platformio. I've fought with it to the point where calling puts_raw() will print to the Debug…
Dacoolinus
  • 388
  • 1
  • 10
0
votes
2 answers

Can Golang (Win11) send messages to a TinyGo USB HID device (Badger2040)

Note: The following may be impossible - I can't find whether or not in the USB spec. I am currently using a Badger2040 as a keyboard - using USB HID from TinyGo - which works fine. I can also (which I didn't expect) print to the console from the…
AndyS
  • 725
  • 7
  • 17
0
votes
1 answer

How to get buttons working on Badger2040 in Tinygo

I've been trying to access the Badger2040 buttons through Tinygo and not having any luck (I have succeeded in CircuitPython before). When I try to change the led state based on Button A, the led is switched on and never switches off: package…
AndyS
  • 725
  • 7
  • 17
0
votes
1 answer

How can i get the 'ussl' module for my microPython project?

I'm using microPython on a Arduino Nano Connect RP2040 and I'm trying to request an https website using the "urequests" library. Every time I try, I get the error message: "ImportError: no module named 'ussl'". I thought microPython would contain…
UBIDA
  • 1
  • 1
0
votes
0 answers

Sharp Memory display via SPI from Arduino Nano RP2040 C++

I have an Adafruit Sharp Memory display connected via SPI to Arduino Nano Connect RP2040. I don't use Arduino IDE nor libraries. I write the code in C++ like I would write for RP2040 on Pi Pico, so I'm using Pico/RP2040 libraries. I'm building it…
Dominik
  • 25
  • 5
0
votes
2 answers

Proper use of SPI functions in RP2040 C/C++ SDK with PGA2310 volume control IC

I've been working on a project where I use a PGA2310 volume control IC to set the volume of an audio signal. The chip's interface is supposedly SPI, but no matter how much I try, I just can't seem to get it right. The chip takes a 16 bit word over…
0
votes
1 answer

micropython rp2040 PIO interrupt not firing

This code works but the interrupt only triggers when running on statemachine 0: Although it is working I want to know if there are other ways to solve it from machine import Pin, PWM from time import sleep import rp2 class PioLoader(): …
0
votes
1 answer

Raspberry pi Pico W is halting at random whilst making consecutive http get requests

I am developing a project using the pi pico w and I need to make get and post request to a website to report that the device is live and to send temperature data and to receive commands for now the only request I'm making is to…
Farouk
  • 261
  • 1
  • 10
0
votes
0 answers

how can i get specific data from rp2040 pin? I'm using Thonny

Using Rotary Dip Switch and HEF4051, I want to get values from it when Switch's value changes. according to HEF4051 datasheet, Rotary Dip Switch's data goes to Out pin, and it's connected to Pin#28 at my device. so I wanna get specific value of…
Fortalice
  • 1
  • 1
0
votes
3 answers

How to write to a specific register on RP2040 to debounce

I'm using the Arduino IDE and langauge (C) to program a Raspberry Pi Pico. I have a project that uses a 16x2 LCD and a button to control it's backlight. The button and everything other works correctly, my problem is that every time i press the…
bcseh202
  • 9
  • 5