Search found 70 matches

by on4aa
Tue Jan 23, 2018 12:24 am
Forum: Programs, Libraries and Tools
Topic: Some problems with asyn library #2
Replies: 3
Views: 3658

Some problems with asyn library #2

I have two uasyncio coroutines awaiting the same event . One coroutine is a slow file write, the other one is a fast LCD screen refresh. When the event is set (triggered), is it possible that the slow file write will withhold the LCD screen from refreshing quickly? Do I need to encapsulate the ordin...
by on4aa
Mon Jan 22, 2018 8:30 pm
Forum: ESP32 boards
Topic: Software architecture ESP32 GUI with background processes
Replies: 7
Views: 5869

Re: Software architecture ESP32 GUI with background processes

Peter's article link appears dead over here.
Nonetheless, I found a copy of this 2014 scroll in a cave on the web…
by on4aa
Mon Jan 22, 2018 6:11 pm
Forum: ESP32 boards
Topic: Software architecture ESP32 GUI with background processes
Replies: 7
Views: 5869

Re: Software architecture ESP32 GUI with background processes

@stijn No luck here. The 15 minute background loop could in worst circumstances require up to one minute to complete its task.
by on4aa
Mon Jan 22, 2018 6:07 pm
Forum: ESP32 boards
Topic: Software architecture ESP32 GUI with background processes
Replies: 7
Views: 5869

Re: Software architecture ESP32 GUI with background processes

@Peter Right! I guess, I was still a bit confused since my unsuccessful attempt to install uasyncio on a Pycom flavoured ESP32. That too, may eventually get resolved when Pycom pulls in robert-hh's pull requests. Anyhow, I somewhat lost my interest in Pycom. On the other hand, what a Great Schism we...
by on4aa
Mon Jan 22, 2018 5:35 pm
Forum: MicroPython pyboard
Topic: machine.idle() during await uasyncio.sleep()?
Replies: 6
Views: 4630

Re: machine.idle() during await uasyncio.sleep()?

However if your application can sleep for extended periods you could design it so that the scheduler stops (run_until_complete), the unit goes to sleep, with wakeup restarting the scheduler. That would indeed be a more clever solution. It is still very tricky, though. Having the Pyboard lingering i...
by on4aa
Sun Jan 21, 2018 4:34 pm
Forum: MicroPython pyboard
Topic: machine.idle() during await uasyncio.sleep()?
Replies: 6
Views: 4630

machine.idle() during await uasyncio.sleep()?

Here is a simple question:
When calling an await uasyncio.sleep(), does this put the MCU in idle?

Putting an explicit machine.idle() right above an await uasyncio.sleep() line will result in the latter never to be executed. So, that is not a solution to save some power.
by on4aa
Sun Jan 21, 2018 12:31 pm
Forum: ESP32 boards
Topic: Software architecture ESP32 GUI with background processes
Replies: 7
Views: 5869

Software architecture ESP32 GUI with background processes

Hi lads, I am planning on writing a graphical user interface with 3-button control for the ESP32-based M5Stack . At the same time, two background processes will have to run at 3 and 15 minute intervals. The GUI and background processes should not mutually block one another. However, they do need to ...
by on4aa
Sat Jan 20, 2018 3:15 pm
Forum: MicroPython pyboard
Topic: best approach for an application config file
Replies: 16
Views: 23159

Re: best approach for an application config file

There is one caveat with pickle , though. Quoting from the documentation : The Python funcitons eval and exec invoke the compiler at runtime, which requires significant amounts of RAM. Note that the pickle library from micropython-lib employs exec . It may be more RAM efficient to use the ujson libr...
by on4aa
Mon Jan 15, 2018 12:53 pm
Forum: Drivers for External Components
Topic: ILI9340/ILI9341 TFT Display
Replies: 37
Views: 60158

Re: ILI9340/ILI9341 TFT Display

For exactly that reason, I am using a firmware build directly from loboris’s github repository :- … BTW: You can use USB and simply disable their wifi/cloud module in boot.py. Loboris certainly looks to be the cool kid in town! 8-) I will try this out. As a matter of fact, I opened a bug report aga...
by on4aa
Mon Jan 15, 2018 12:10 am
Forum: Drivers for External Components
Topic: ILI9340/ILI9341 TFT Display
Replies: 37
Views: 60158

Re: ILI9340/ILI9341 TFT Display

Note to myself: Here is the GitHub repository of M5Stack's MicroPython firmware . However, I am extremely uncomfortable with sending my code or WiFi password to some (Asian?) cloud server. Certain details of my code projects are strictly private. Is there a way to still use M5Stack's MicroPython fir...