m5stack / M5StickC

M5StickC Arduino Library
MIT License
477 stars 222 forks source link

Fix for Wire in RTC to avoid crash when using Arduino on PlatformIO #38

Closed georgcampana closed 5 years ago

georgcampana commented 5 years ago

In RTC the Wire (i2c) initialization has been moved to specific begin() method to remove it from the RTC constructor.

This fixes the crashes when using the M5StickC library in an Arduino project but on PlatformIO.