M5stickc plus2 and Tft_espi problem.
-
Hello @Kazik
please read the yellow note from the documentation.
After triggering the wake up signal, the hold(G4) pin needs to be set to a high level (1) in program initialization to maintain the power supply, otherwise the device will enter the shutdown state again.
Thanks
Felix
-
@felmue said in M5stickc plus2 and Tft_espi problem.:
Hello @Kazik
please read the yellow note from the documentation.
After triggering the wake up signal, the hold(G4) pin needs to be set to a high level (1) in program initialization to maintain the power supply, otherwise the device will enter the shutdown state again.
Thanks
FelixI dont know where to put this in marauder code. I need advice. I managed to compile the code to work on plus 2. only works if the usb cable is connected. Marauder code is very problematic for M5Stickc.
-
-
@felmue just simple like this?
// Set digital pin 4 (GPIO4) to high state
pinMode(4, OUTPUT);
digitalWrite(4, HIGH);
-
-
@felmue
Nothing changed :( i have no clue what is wrong.
EDIT Now its working Thank You very much
-
@felmue hellol could you tell me is pins to connect sd card module to plus2 are the same as plus?
3V3 > 3V3
CS > GND
MOSI > G26
CLK > G0
MISO > G36
GND > GND.
Of course I must change pins in source code.
-
Hello @Kazik
from what I can tell looking at the documentation for the two M5Sticks here and here I would say the same GPIOs can be used for both.
Please note: I do not have an M5StickCPlus2 so I cannot test this myself.
Thanks
Felix
-
@felmue So I source code I must change CS pin to LOW? To match for GND?
-
Hello @Kazik
SPI bus can handle multiple (slave) devices. Each has its own CS. See here.
That said, if the SD card it the only slave device it's ok to connect its CS directly to GND. If you want to use a GPIO for CS then yes, set it to LOW.
Thanks
Felix