emlearn-micropython icon indicating copy to clipboard operation
emlearn-micropython copied to clipboard

HAR + M5StickC PLUS 2: Display does not work after a reset (for the recoder)

Open colas-sebastien opened this issue 8 months ago • 4 comments

When the recorder is started for the first time, the LCD display stays blank. To reproduce the issue:

mpremote reset
mpremote run har_record.py

The second time the program is executed the LCD display works properly

mpremote reset
mpremote run har_record.py
mpremote run har_record.py

Probably a tempo need to be added between the display initialization and the first display

colas-sebastien avatar Mar 26 '25 16:03 colas-sebastien

Hi @colas-sebastien, thank you for reporting. I have observed the same thing at times. Do you have any proposals for a fix?

jonnor avatar Mar 28 '25 23:03 jonnor

@jonnor I am working on:

  • A fix for the current code. Another issue is if you deploy the har_record.py as main.py because it is like a reset the issue is the same. There is only an impact on LCD display, it seems the recording is working well
  • A port of your code or a new one to have the recorder working with the M5Stack micropython 1.24.0 uiflow 2.2.4

colas-sebastien avatar Mar 29 '25 10:03 colas-sebastien

Hi @colas-sebastien - were you able to find a fix/workaround that works for the display?

jonnor avatar Apr 25 '25 20:04 jonnor

Hi @jonnor I created the following code that is compatible with the M5 micropython. The code directly generate .csv files. https://uiflow2.m5stack.com/?pkey=b867e655215447bfb09caa57ae5dca39 Please select code only on the web IDE. It's still work in progress, if you have time to test it and why not update the timestamp format to be compliant with your code that would be great.

colas-sebastien avatar Apr 27 '25 07:04 colas-sebastien