Xinyuan-LilyGO / T-Watch-2021

MIT License
78 stars 18 forks source link

error on ACC sample for arduino 1.8.5 when using the copied library #3

Closed F99 closed 1 year ago

F99 commented 2 years ago

C:\Users\F70\Documents\Arduino\libraries\TWatch_2021_Library\src\drive\bma423.cpp: In member function 'void TWatchClass::AccSensor_Set_Feature_CB(uint8_t, irq_Fun_cb_t)':

C:\Users\F70\Documents\Arduino\libraries\TWatch_2021_Library\src\drive\bma423.cpp:284:9: error: '_bma_irq_cb' was not declared in this scope

LilyGO commented 2 years ago

I recompiled some ACC routines. It doesn't seem to find your error. Did you uncomment the corresponding model in TWatch_config.h?

F99 commented 2 years ago

yes, it is the old version, I used

define TWatch2021_V1

LilyGO commented 2 years ago

Can you see what the version number on the board is? TWatch2021_V1, I will reproduce it and update it in the next version

F99 commented 2 years ago

It's the early version with INT1:IO22 and INT2:IO39 on BMA423 as shown on the instruction sheet. On the board I can see nothing. Also I have flashed it successfully with the other repo https://github.com/sharandac/My-TTGO-Watch which is running ok.

LilyGO commented 2 years ago

The difference between the two versions and the V1 version is that there is no RTC interrupt. Version V1.2 consolidates all interrupts on one pin.

F99 commented 2 years ago

The sheet only names SDA:IO26 and SCL:IO25 and no interrupt for RTC at this version. But that doesn't explain the errors at build stage.

LilyGO commented 1 year ago

I've re-updated the new library files to fix some of the bugs caused by the outage. Please try compiling with this library again.

LilyGO commented 1 year ago

The problem has not been updated for a long time, hang first