m5stack / M5Unified

Unified library for M5Stack series
MIT License
276 stars 48 forks source link

M5Stamp C3でM5Unifiedをincludeできない #73

Closed hashy0917 closed 8 months ago

hashy0917 commented 9 months ago

スケッチのUpload中に以下のようなエラーが発生します

c:\Users\■■■■\Documents\Arduino\libraries\M5Unified\src\utility\Power_Class.cpp: In member function 'void m5::Power_Class::_powerOff(bool)':
c:\Users\■■■■\Documents\Arduino\libraries\M5Unified\src\utility\Power_Class.cpp:588:21: error: 'esp_sleep_enable_ext0_wakeup' was not declared in this scope
       if (ESP_OK != esp_sleep_enable_ext0_wakeup( pin, false))
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\Users\■■■■\Documents\Arduino\libraries\M5Unified\src\utility\Power_Class.cpp:588:21: note: suggested alternative: 'esp_sleep_enable_wifi_wakeup'
       if (ESP_OK != esp_sleep_enable_ext0_wakeup( pin, false))
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                     esp_sleep_enable_wifi_wakeup

Using library M5Unified at version 0.1.9 in folder: C:\Users\■■■■\Documents\Arduino\libraries\M5Unified 
Using library M5GFX at version 0.1.9 in folder: C:\Users\■■■■\Documents\Arduino\libraries\M5GFX 
exit status 1

Compilation error: exit status 1

使用デバイスは M5Stamp C3 でIDEは ArduinoIDE 2.2.1です

lovyan03 commented 9 months ago

@hashy0917 ご報告ありがとうございます!助かります。 とりいそぎ develop ブランチにて修正を反映致しましたので、よろしければお試しください…!

hashy0917 commented 9 months ago

おお、迅速な対応ありがとうございます。

無事使用する事が出来ました。