Lcd driver for M5Stack Core2
-
This post is deleted! -
@russ
How can you include the internal SD card in your firmware? Do you have any ideas about this?
I have not found anything yet. -
Found out now.
It must be installed before the display driver in any case.#SD-Card
uos.mount(machine.SDCard(slot=3, sck=18, mosi=23, miso=38, cs=4,), '/sd')
print(uos.listdir('/sd')) -
Leider kommen diese Fehlereldungen wenn ich was speichern will. Das lesen geht.
E (39687) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (39697) sdmmc_cmd: sdmmc_write_sectors_dma: sdmmc_send_cmd returned 0x105 -
I load the SD driver after the LCD everything goes but the screen is not displayed.
If I load the SD driver before the screen, the SD does not work.
Something interferes then. -
I was able to make concurrent display and sdcard work on the original M5Stacks https://github.com/russhughes/TinyBigBuckBunny but have not been able to make it work on the Core2's yet. I'm not sure why yet.
-
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 ?