@felmue Thanks.
I thought of doing this, but it is a kind of a patch, not a fix. The whole advantage of having callbacks functions that perform distinct operations outside of the main loop is almost eliminated by doing this. The main loop need to be as clean as possible, otherwise very quickly it becomes very long and messy.
Functions outside the main loop should be working properly, unless there is a fundamental reason why they cant access the display libraries properly.
It looks like a fundamental bug in how the firmware on the TAB5 treats the external functions.
Latest posts made by BR123456
-
RE: Display not refreshing within loops
-
Option to compile the UIFlow2 code
This is a big one, but will make lot's of users very happy.
Add the option to compile the micropython code generated by the UIFlow2 IDE and load it to the controller (like in the Arduino IDE).
Development will be done using the current mode of using the firmware on the controller to run the micropython code (as an interpreter). This makes the development very convenient, user friendly and quick.
After the development is done, the user can compile the code to binary code and load it on the controller for best performance. -
Code acceleration options
Code acceleration options such as add a @micropython.native decorator before critical functions in order to boost their performance.
Perhaps add a simple "Real Time" library of blocks including some low level blocks. -
Display not refreshing within loops
Hi,
On UIFlow 2.3.5, TAB5:
The display is not refreshing during a loop that changes a label text.
It only refreshes to the last operation of the loop by the end of the loop.
I have a callback function for a simple push button that counts from 1 to 100 and displays the count with a label. It only shows the last number by the end of the loop.
When this exact loop is placed in the main loop it works well.
I tried the following without success:- Add manual command to the python code: M5.update() within the loop: no refresh
- Tried a bar to display the count: bar length not refreshing
- Added in the loop a sleep command up to a full second: no refresh
It seems that an external loops (to the main loop) don't get the attention of the display library, only when this loop is in the main loop.
-
Running binary files from UIFLOW2
Hi,
Is there a possibility to run compiled files (binary executables) from a micro python code when a controller (Core2 or Tab5) is running a UIFlow2 firmware?Thanks