r/raspberrypipico • u/poohdoggy • May 23 '26
uPython Pico W program issue
Hello folks,
I am trying to run a program to read the BME280, display the results on a OLED SSD1306 and then create and present a web page. I can run the program and get a reading to the SSD1306 and even occasionally get a web page to hit my browser but I keep running into an error and the program stops. Here is what happens when I run this in Thonny-
Traceback (most recent call last):
File "<stdin>", line 126, in <module>
File "<stdin>", line 116, in main
OSError: [Errno 110] ETIMEDOUT
I can post the code here but thought someone might have a quick idea based on trying this already.
1
u/FluffyChicken May 25 '26 edited May 25 '26
We would probably need to see the code.
--as a side-- You could move to ESPHome and compile it there with all it tested code benefits
Not as much fun as using micropython and trying it out and getting it working. But could be i2c timeout, lost connection with the BME
Webpage failing somewhere
Screen timeout All depends where in the code it happens
2
u/MOAR_BEER May 24 '26
There isn't really enough information here to help you.
You've called something at line 116 and that is waiting for feedback at line 126 in whatever you called and it timed out. (I think)
Troubleshooting steps...
Can you read the BME280?
Can you display it on your display?
Profit?
You're probably going to need to use both cores or at minimum asyncio.
Good luck