Error compiling for board M5Stack-ATOM
- 
					
					
					
					
 When updating M5stack boards on arduino platform, it has given me the following error: 
 Arduino: 1.8.19 (Windows 10), Board: "M5Stack-ATOM, Default, 1500000, None"In file included from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms/esp/32/clockless_rmt_esp32.h:116, 
 from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:8,
 from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms.h:36,
 from C:\DISE�OS\Arduino\libraries\FastLED\src/FastLED.h:52,
 from C:\DISE�OS\Arduino\libraries\M5Atom\src/M5Atom.h:54,
 from C:\DISEÑOS\Arduino\libraries\M5Atom\examples\Basics\LEDSet\LEDSet.ino:13:
 C:\Users\Vicente\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]
 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead
 ^~~~~~~
 In file included from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms/esp/32/clockless_rmt_esp32.h:116,
 from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:8,
 from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms.h:36,
 from C:\DISE�OS\Arduino\libraries\FastLED\src/FastLED.h:52,
 from C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.h:54,
 from C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.cpp:4:
 C:\Users\Vicente\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]
 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead
 ^~~~~~~
 C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.cpp: In member function 'void M5Atom::begin(bool, bool, bool)':
 C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.cpp:23:28: error: call of overloaded 'begin(int, int, int)' is ambiguous
 Wire.begin(25, 21, 100000);
 ^
 In file included from C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.h:53,
 from C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.cpp:4:
 C:\Users\Vicente\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1\libraries\Wire\src/Wire.h:79:10: note: candidate: 'bool TwoWire::begin(int, int, uint32_t)'
 bool begin(int sda=-1, int scl=-1, uint32_t frequency=0); // returns true, if successful init of i2c bus
 ^~~~~
 C:\Users\Vicente\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1\libraries\Wire\src/Wire.h:80:10: note: candidate: 'bool TwoWire::begin(uint8_t, int, int, uint32_t)'
 bool begin(uint8_t slaveAddr, int sda=-1, int scl=-1, uint32_t frequency=0);
 ^~~~~
 exit status 1
 Error compiling for board M5Stack-ATOM.I would need help, thanks in advance 
- 
					
					
					
					
 Hello @vgamlc to get rid of the ambiguous error I had to fix two files: M5Atom.cppandMPU6886.cpp.In M5Atom.cppI've replaced this line:Wire.begin(25, 21, 100000);with (note the U at the end): Wire.begin(25, 21, 100000U);and in MPU6886.cppI've replaced this line:Wire1.begin(25,21,100000);with: (note the U at the end) Wire1.begin(25,21, 100000U);Thanks 
 Felix
- 
					
					
					
					
 You are a machine, thank you very much. 
- 
					
					
					
					
 
