Xinyuan-LilyGO / T-Watch-2021

MIT License
84 stars 18 forks source link

error: '_bma_irq_cb' was not declared in this scope #7

Open londi opened 2 years ago

londi commented 2 years ago

Hi There,

I see the following error when I try to compile/upload the example "twatch rainbox".

/Users/USER/Documents/Arduino/libraries/TWatch_2021_Library/src/drive/bma423.cpp: In member function 'void TWatchClass::bma423_set_feature_event(uint8_t, irq_Fun_cb_t)': /Users/USER/Documents/Arduino/libraries/TWatch_2021_Library/src/drive/bma423.cpp:307:5: error: '_bma_irq_cb' was not declared in this scope _bma_irq_cb.single_tap_cb = cb; ^~~~~~~~~~~ /Users/USER/Documents/Arduino/libraries/TWatch_2021_Library/src/drive/bma423.cpp:307:5: note: suggested alternative: 'hal_aio_irq_cb' _bma_irq_cb.single_tap_cb = cb; ^~~~~~~~~~~ hal_aio_irq_cb Multiple libraries were found for "WiFiClient.h" Used: /Users/USER/Library/Arduino15/packages/esp32/hardware/esp32/2.0.5/libraries/WiFi Not used: /Applications/Arduino.app/Contents/Java/libraries/WiFi exit status 1 Error compiling for board ESP32 Dev Module.

Board Config:

image

Tried with both configs:

define TWatch2021_V1

// #define TWatch2021_V1_2

Have I something forgotten to setup?

kind regards Londi

yewrepo commented 1 year ago

Same error, pls help