Lcd driver for M5Stack Core2
-
I was able to get simultaneous display and sdcard access working. The M5CORE2 firmware.bin has been updated. See the tbbunny.py example from https://github.com/russhughes/ili9342c_mpy/blob/main/examples/M5CORE2/tbbunny.py
-
@russ
Thank you for your work.
It works now. -
@russ
Hello, is there any way to use the three touch buttons as well? -
Yes, I’ll add an example working with the touchscreen later tonight.
-
@russ
Super!
Thank you for doing this work. -
@wolli01 Updated repo with two examples using the touchscreen. The buttons on the Core2 are actually part of the touchscreen that extend below the display from about Row 240 to 279.
Button press example:
https://github.com/russhughes/ili9342c_mpy/blob/main/examples/M5CORE2/buttons.pyVery simple paint program:
https://github.com/russhughes/ili9342c_mpy/blob/main/examples/M5CORE2/paint.py -
@russ
Thank you very much for your effort.
What is this code for in the end?
Is it mandatory to use it?finally: # shutdown spi.deinit()
-
@wolli01 said in Lcd driver for M5Stack Core2:
@russ
Thank you very much for your effort.
What is this code for in the end?
Is it mandatory to use it?finally: # shutdown spi.deinit()
The code de initialises the SPI bus so that that other functions can use the pins or the bus
-
@ajb2k3
Thanks for the info.
Where is the best place to put it in the code -
@wolli01 At the very end of the program before it quits.
-
This post is deleted! -
@russ
I have a problem with the SD card.
My program runs sometimes 1-2 days well through and then when it comes to an error and hangs, it is restarted by the watchdog. When restarting but then no longer the SD card with the command:
sd_device = sdcard.SDCard(spi, cs=Pin(4), baudrate=20000000)
installed.
Do you have a tip what this could be and how I can change it? -
@Russ
hello,
when I install the new firmware 1.16, I get the message that the build rate is unknown.
If I go back to 1.14, everything runs without problems.
Do you know what the problem could be? -
Is the SD card being filled ?
-
Yes works perfectly at the beginning.
Sometimes many days without problems and then is no longer written to the SD card.
Sometimes it no longer works after a few hours. -
Is there a way to disable the Core2 in software?
So PowerOff? -
SD card unfortunately still does not run through!
I get this error message when the SD card fails.
[Errno 5] EIO
I wonder what the problem is here?
Sometimes it goes only 2 hours and sometimes up to 2 days.
If I log nothing on the SD card, I can just write something on it even after 5 days and it goes. Just not in continuous use. -
I had version 1.14 from you at the time
https://github.com/russhughes/ili9342c_mpywhich worked great for me for years on the M5Stack Core2.
But now there is a new version of Core2 version 1.1Unfortunately, this version no longer runs with your version 1.14.
Is there a way to make the 1.14 version work with the new firmware 1.1?The differences between Core2 and Core2 v1.1 are as follows:
1.The power management scheme is iterated from Core2(AXP192) to Core2 v1.1(AXP2101+INA3221). The ID of AXP192 and AXP2101 is different, and the program uses this as a sign to distinguish the versions;
2.The power indicator is changed from green to blue;
3.Add RTC chip power supply battery to ensure accurate timing when power is off.