Search found 24 matches

by Ventran
Thu Dec 10, 2020 6:53 pm
Forum: Development of MicroPython
Topic: Issue when compile firmware
Replies: 3
Views: 2343

Re: Issue when compile firmware

OK, Just editing file stm32f4xx_hal_conf.h resolved the problem. Thank you.
by Ventran
Wed Dec 09, 2020 10:58 pm
Forum: Development of MicroPython
Topic: Issue when compile firmware
Replies: 3
Views: 2343

Re: Issue when compile firmware

Thank you for your answer. Is really helpful. I will try this and give feedback.
by Ventran
Wed Dec 09, 2020 10:28 am
Forum: Development of MicroPython
Topic: Issue when compile firmware
Replies: 3
Views: 2343

Issue when compile firmware

I have a problem when trying compile micropython firmware for F411: https://github.com/WeActTC/WeAct_F411CE-MicroPython Everything is OK when use stable version 1.13 of Micropython but I need newest daily version for my experiment. git clone https://github.com/micropython/micropython.git cd micropyt...
by Ventran
Sat Dec 05, 2020 3:23 pm
Forum: ESP8266 boards
Topic: Micropython question using uasyncio with ESP8266 webserver
Replies: 4
Views: 5117

Re: Micropython question using uasyncio with ESP8266 webserver

I think so. This is only draft but work for me. Currently I have three task one of them is web server.
by Ventran
Mon Nov 23, 2020 10:29 pm
Forum: General Discussion and Questions
Topic: rshell error in transfer to remote
Replies: 0
Views: 1128

rshell error in transfer to remote

Hello,
I have a problem when trying copy *.mpy files to ESP8266 memory:
timed out or error in transfer to remote: b'\x04'
Other files like *.py, *.html, *.json is copied perfect.
I use version 0.0.28 of rshell.
by Ventran
Wed Nov 04, 2020 7:10 pm
Forum: ESP8266 boards
Topic: Micropython question using uasyncio with ESP8266 webserver
Replies: 4
Views: 5117

Re: Micropython question using uasyncio with ESP8266 webserver

Maby try https://github.com/swvincent/mp-web-non-blocking. This solution help me resolve my porblem with blocking socket in system.
by Ventran
Fri Oct 30, 2020 6:24 pm
Forum: General Discussion and Questions
Topic: Switching between tasks
Replies: 6
Views: 3070

Re: Switching between tasks

Thank you for you solution. Simple state machine resolve problem.

Three task:
- one for update display
- one for get new value
- one for switching tasks

Image
by Ventran
Wed Oct 28, 2020 11:59 am
Forum: General Discussion and Questions
Topic: Switching between tasks
Replies: 6
Views: 3070

Re: Switching between tasks

do you want task 1 for some time. THEN task 2 for some time. THEN task 3? in which case they don't need to be separate tasks Yes. I want something like this: while True: display.text("Task #1", 5, 5) display.show() utime.sleep_ms(5000) display.fill(0) display.text("Task #2", 5, 5) display.show() ut...
by Ventran
Wed Oct 28, 2020 8:26 am
Forum: General Discussion and Questions
Topic: Switching between tasks
Replies: 6
Views: 3070

Re: Switching between tasks

OK, I use only:

Code: Select all

await asyncio.sleep_ms( )
but the Display show only Task #3 (5 sec) and Task #2 (1 sec).

Image

I want show on display Task #1 (during 5 sec.), Task #2 (during 5 sec.) and Task #3 (during 2 sec.)