658 questions
Best practices
0
votes
6
replies
90
views
How to use file sets in CMakeLists
I'm currently writing CMakeLists for a multidirectory project,and am trying to use file sets and target_sources as it is regarded as better than using target_include_directories, but the only problem ...
0
votes
1
answer
29
views
Micropython PIO interrupt causes loop on PICO
Extract of longer program. Just to toggle the .side pin and then quit the PIO program. Causes loop and have to nuke the PICO! Loops before the 'Run' print. Thanks
TypeError: function takes 2 ...
2
votes
1
answer
85
views
Error: expected string literal before '__asm' in a pico-sdk project?
In my RP2040 pico-sdk project, I'm getting a problem when I try to use the CMSIS function __DSB() - "error: expected string literal":
/src/MyProject/my_main.c:848:5: error: expected string ...
0
votes
0
answers
87
views
lwip include path for Raspberry Pi pico 2 w SDK
EDIT: I just needed to add target_link_libraries(${PROGRAM} pico_cyw43_arch_lwip_threadsafe_background) to CMakeLists.txt.
I'm trying to compile a program for the pi pico2 w but it can't find "...
0
votes
0
answers
58
views
Micropython asyncio StreamWriter only sends part of data
I'm pretty new to Python, & I'm attempting to set up an access point from a Pico W to provide info to a client (eg, an iPhone). The connection is successful, but my iPhone app only receives ...
-1
votes
2
answers
63
views
laser turns on without input
i have a setup with a microcontroller where pushing a button i attached with gpio pins turns on a laser pointer using gpio pins. this is part of a larger project including speakers and other leds and ...
1
vote
0
answers
134
views
Pico Hardware SDK options not available for C++
I'm playing around with the Pico SDK and the extension in VS Code and it seems that when I produce a C++ file program instead of C, a number of the hardware options are no longer available to include. ...
1
vote
1
answer
133
views
Getting C++ memory allocation pointing to same location which crashes the program
I am programming an RP2040 chip using the Pico-Arduino library. In this problem, I am using the Ardunio String class and the Adafruit_NeoPixel class. After setting up some "Strings" and a ...
0
votes
1
answer
122
views
Bluetooth advertisement data
I built a small PoC on rp-pico using the btstack, basically rework of the standalone simple BLE service.
Like in the example, BLE uses advertisement data, and in the example there are some constant ...
0
votes
0
answers
70
views
Micropython is HARD
I'm having trouble either controlling the flow, or maybe my math is wrong, but I keep getting stuck in a loop. My code should be getting the temperature of a thermistor (TempF), translate that to a ...
0
votes
1
answer
78
views
CircuitPython - Input pins dont work when not executing from Thonny
I am building a thermostat and have designed a board layout which I am intent on ordering but I want to make sure everything works before I order. After getting everything wired up on a breadboard for ...
0
votes
0
answers
85
views
How to Set Temperature for a Virtual Tuya Thermostat Using MicroPython? API Token Request Fails (Error 1108: URI Path Invalid)
I'm trying to control the temperature of my virtual Tuya Thermostat using MicroPython. I have already successfully tested the API using Postman. However, when I try to use the same parameters and ...
0
votes
0
answers
18
views
Why is my waveshare 7in5 b display with raspberry pico2w going into PANIC?
Im trying to send an image from a server to the pico2w board whcih is connected to a waveshare 7in5 b pico epaper display, the problem is that the server sends the image to the pico2w, it receives the ...
0
votes
0
answers
43
views
Unable to connect in Win10 to my W5500-EVB-Pico2 ( RP2350 ) via SWD
I 've tried to connect via USB (debugging pins SWDIO, GND, SWCLK) to my W5500-EVB-Pico2 ( RP2350 ) using SEGGER J-Link Commander V8.12b (latest version) in Win10 (x64).
J-Link log:
SEGGER J-Link ...
1
vote
2
answers
451
views
Waveshare RP2350 Touch Lcd 1.28 inch LVGL
Got my hand on a cheap Wavehsare RP2350 Touch LCD 1.28 inch round display, and wondered if I could run LVGL Micropython on It. I'm a newbie.
I tried the official Wavehsare documentation, and didn't ...
0
votes
0
answers
209
views
Issue Running Async Web Server with Multi-Core Threading on Raspberry Pi Pico W
I'm working on a project using the Raspberry Pi Pico W 2 that involves displaying data from BLE sensors on a web page, with everything running on the Pico.
My intention is to:
Run an asynchronous web ...
-2
votes
2
answers
195
views
Problems using threading for a webserver on raspberry pi pico W [closed]
I'm trying to make a webserver display some data while the pico is collecting it from some pins. Everything works fine for making the webserver running, i'm able to access it with "static" ...
1
vote
1
answer
214
views
Bidirectional communication over USB between host PC and Raspberry Pi Pico
I'm trying to achieve bidirectional communication over my Raspberry Pi Pico's built-in micro-USB port. More specifically, I'm trying to make my computer send a ping to the Pico, and the Pico receives ...
0
votes
0
answers
91
views
VS Code, adding a source file to a C language project causes an error
I am using the Raspberry Pi Pico Extension in VS Code, running on a Pi4. I am playing with the examples provided in the RaspberryPi/pico-examples repository on GitHub... for example the hello_uart ...
1
vote
0
answers
215
views
Reading Bluetooth signals from a HIDS device using aioble and micropython on a Pi Pico
I have a Raspberry Pi Pico W that I want to have perform an action when a button is pressed on a bluetooth remote control I bought.
I can read the bluetooth remote and it's services and ...
1
vote
0
answers
68
views
Captive Portal In MicroPython doesnt work
I am trying to create an automatic captive portal using a Raspberry Pi Pico H with an ESP8266 Wi-Fi HAT. When I connect to the Wi-Fi, it works, but the user is not automatically redirected to the ...
0
votes
0
answers
304
views
Pico flash and heap - how much available and how much is used
I am learning how to program a Raspberry PicoW in C++ and I have two question about flash:
How much of the flash is my programme taking up? With AtMega programming, the compiler would display this ...
0
votes
0
answers
40
views
Raspberry Pi Pico with KX134 accelerometer not being recognised despite being detected
I'm using the code below to communicate between a Raspberry Pi Pico and a KX134 accelerometer connected over I2C. The device is being detected by a ping, however the program itself does not register ...
0
votes
1
answer
459
views
I am having a very long and strange error when building Picotool 2.0.0
I am trying to build picotool 2.0.0, but I am running into a strange error. I have had to remove some of the error output as well as some of the build output as it is to long for this post:(.
PS C:\...
0
votes
1
answer
43
views
OSError -1 while trying to send GPIO pin values
I have a short code written in micropython on pico pi W. This codes sets up a server and is mainly supposed to display a website on which you can check the states of all the GPIO pins.
Now when I go ...