Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTGO T-watch V3 tilt directions mixed up #5

Open
bdash9 opened this issue Jan 10, 2023 · 1 comment
Open

TTGO T-watch V3 tilt directions mixed up #5

bdash9 opened this issue Jan 10, 2023 · 1 comment

Comments

@bdash9
Copy link

bdash9 commented Jan 10, 2023

Hi,
I know this code came out a while ago but I just picked up a LilGo T-watch 2020 v3 and loaded your TTGO_DOOM code and it runs well! Thanks!
One issue is that tilting the watch does the following:

Tilt Left goes forward
Tilt Right goes backwards
Tilt towards user (forwards) goes Right
Tilt away goes Left

I have been looking through the code and can't find where i could change this.
Any chance you could post where?

Thanks,
Ben

@MemerAus
Copy link

you can swap the x and y in the bottom of "togo_c.cpp" to make it playable.

}
extern "C" bool ttgo_get_accel(int16_t* x, int16_t* y, int16_t* z) {
Accel acc;
bool ret = ttgo->bma->getAccel(acc);
*x = acc.y;
*y = acc.x;
*z = acc.z;
return ret;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants