m5stack / M5Core2

M5Core2 Arduino Library
MIT License
263 stars 115 forks source link

M-BUS hardware no GPIO 5 SPI CS exposed #76

Closed wurst44 closed 2 years ago

wurst44 commented 2 years ago

This is more like a hardware question, in Core Basic the SPI CS (GPIO 5) was exposed in M-BUS. Has this been removed in Core2? Is it not essential for using SPI over the bus? So all add-ons for core basic are incompatible with core2?

Screenshot_20211208_225405 Screenshot_20211208_225321

felmue commented 2 years ago

Hello @wurst44

the good thing about ESP32 is that almost every function can be mapped to use almost any GPIOs. For many functions, like SPI, there are some GPIOs defined as default, but any of the GPIOs used for SPI can be changed as needed.

The LAN module for instance uses GPIO26 as SPI CS (which btw is the same for M5Stack (Base, Gray, Fire) and M5Core2. Have a look here.

Thanks Felix