Search found 5 matches

by Donquizote99
Wed Aug 18, 2021 9:01 am
Forum: General Discussion and Questions
Topic: help with UART and Raspberry Pico
Replies: 2
Views: 1239

Re: help with UART and Raspberry Pico

Update: I got the following error: Task exception wasn't retrieved future: <Task> coro= <generator object 'dataout' at 2000e610> Traceback (most recent call last): File "uasyncio/core.py", line 1, in run_until_complete File "<stdin>", line 25, in dataout File "t_sustrato.py", line 18, in tsustrato F...
by Donquizote99
Wed Aug 18, 2021 8:40 am
Forum: General Discussion and Questions
Topic: help with UART and Raspberry Pico
Replies: 2
Views: 1239

help with UART and Raspberry Pico

Hello I am developing a small personal project, I use raspberry pico and micropython, previously I had requested your help to solve some problems, despite obtaining the desired behavior, after a time "x" of execution (it varies the time) the program fails, however , it does not send an error, and th...
by Donquizote99
Tue Aug 10, 2021 5:06 am
Forum: General Discussion and Questions
Topic: helps with uasyncio and raspberry pico
Replies: 6
Views: 2262

Re: helps with uasyncio and raspberry pico

Thanks for your advice, I could already obtain the desired behavior, instead of passing the coroutine as an argument of the task, the introduction as a variable within the function, with this I obtained the desired behavior; substrate humidity () I have it as a coroutine to be able to execute it in ...
by Donquizote99
Sat Aug 07, 2021 9:10 am
Forum: General Discussion and Questions
Topic: helps with uasyncio and raspberry pico
Replies: 6
Views: 2262

Re: helps with uasyncio and raspberry pico

Thanks for the suggestions I share the modified code and the other functions, however, at first glance the operation does not change async def dataout(): uart = UART(0, baudrate=9600, tx=machine.Pin(16), rx=machine.Pin(17)) while True: d1 = await h() d2 = await t() d3 = await humedadsustrato() d4 = ...
by Donquizote99
Thu Aug 05, 2021 7:06 am
Forum: General Discussion and Questions
Topic: helps with uasyncio and raspberry pico
Replies: 6
Views: 2262

helps with uasyncio and raspberry pico

I started a small personal project to learn and practice micropython and raspberry pico, I try to use uasyncio to read sensors and transmit the data, only I have a problem, I don't know what I'm missing, the data reading and transmission is done correctly (dataout ( )), in main () when assigning awa...