Bus Mapping M5Core2 <-> M5Stack
- 
					
					
					
					
 Hello, in past I used some M5Stack modules at M5Stack and now I like to migrate to M5Core2. The challenge ist the different bus system. Pin M5Stack M5Core2 GND 2 1,3,5 SCK 4 11 MISO 6 9 RESET 8 6 nu 10 - nu 12 - A0 14 - A1 16 - A2 18 - A3 20 - A4 22 - A5 24 - AREF 26 - IO12 28 - IO13 30 - 5V 1 28 MOSI 3 7 SS 5 - D0/RX 7 13 D1/Tx 9 14 D2/SDA 11 SYS:17, EXT:19 D3/SCI 13 SYS:18, EXT:20 D4 15 - D5 17 - D6 19 - D7 21 - IO8 23 - IO9 25 - IO10 27 - IO11 29 - IO35 - 2 IO36 - 4 IO25 - 8 IO26 - 10 3,3V - 12 Rx2 - 15 Tx2 - 16 IO19 - 22 IO0 - 24 IO34 - 26 BAT - 30Who has experience with using an M5Stack module on an M5Core2? 
- 
					
					
					
					
 Core2-bus has some differences with M5-bus. so when you stack the module to the core2. you need to make some pin num change in your code. 
- 
					
					
					
					
 Hi guys I've put together a comparison sheet showing the similarities and differences between M5Stack / M5Core2 bus and GPIO usage. You can find it here: https://www.gwendesign.ch/kb/m5stack/m5core2/#m5core2-bus-and-gpios-compared-to-m5stack Cheers 
 Felix
- 
					
					
					
					
 @felmue Thank you for your help. 
- 
					
					
					
					
 @m5stack Hi! Could you please put an example? I can not find a valid one. For example, how can we -using arduino- mix Core2 and GoPlus2 module? The example does not work. Thank you very much! 
- 
					
					
					
					
 @nlindin what is arduino- mix Core2 ? 
 Go plus2 is sat on my bench waiting to be documented when i finish the coreink but had some issue with the coreink delaying documentation.
- 
					
					
					
					
 @ajb2k3 Thank you for your answer. I want to say an example in arduino for Core2+Goplus2. With Uiflow it seems to work fine. With Arduino I am totally stuck in this scenario. 
- 
					
					
					
					
 Hi again! 
 For now I have changed the .ino from GPIO 5 to GPIO 33, (35 is the same for both, Stack and Core2) but the ir receiver gives only "PARAM LEN ERROR" from all my remotes and buttons. I continue doing something wrong with the Core2+Goplus 2.
 Any help, please?
 Thank you!
- 
					
					
					
					
 @ajb2k3 The IR in the GoPlus2 gives this by the serial monitor. Any updates? 
 Thank you and happy 2021.
 E (42353) rmt: rmt_write_items(797): RMT PARAM LEN ERROR
 send done
 76
 recv done
 76
 .
 .
 .
- 
					
					
					
					
 @nlindin This one works! #include <M5Core2.h> 
 #include <IRremote.h>IRrecv irrecv(35); 
 decode_results ircode;void setup() { 
 M5.begin();
 irrecv.enableIRIn();
 }void loop() 
 {
 if (irrecv.decode(&ircode))
 {
 Serial.println(ircode.value, HEX);
 delay(100);
 irrecv.resume();
 }
 m5.update();
 }


