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

Unable to compile #2

Closed
grondinm opened this issue Jun 6, 2021 · 5 comments
Closed

Unable to compile #2

grondinm opened this issue Jun 6, 2021 · 5 comments

Comments

@grondinm
Copy link

grondinm commented Jun 6, 2021

Hello,

This is the first thing i try to use using arduino. I run Gentoo linux and version 1.8.7 of the arduino IDE.

I've followed the instructions(and had to modify the path to lvgl.h) but the build always fails with

c64_watch:81:15: error: 'class TTGOClass' has no member named 'bl'

I'm not sure where to go from here.

Thank you

@nickbild
Copy link
Owner

nickbild commented Jun 6, 2021

Sounds like you might not have the correct board selected in Arduino IDE. "bl" is an object related to the backlight, but it is wrapped in ifdefs based on board type. If you didn't select a compatible T-Watch, then that object won't be created and you'll get an error like this.

@grondinm
Copy link
Author

grondinm commented Jun 6, 2021

Under Board I have TTGO T-WATCH and under board revision I have T_WATCH_2020-V1

I've tried with the other 2 board revisions (2020-V2 and base) with same result.

@nickbild
Copy link
Owner

nickbild commented Jun 6, 2021

OK, that sounds right. I notice that the library I am using is from when the watch was first released:

https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library/tree/V1.1.0

It doesn't wrap 'bl' in ifdefs I see, so there are definitely differences -- apparently the new version introduced incompatibilities that would take a little tweaking to get working. Should be able to avoid that by using the version above.

If you can confirm, I'll update the README to point to that specific library version.

@grondinm
Copy link
Author

grondinm commented Jun 6, 2021

Thank worked 100%. Thank you for your quick response to this and for C64Watch in general. Very much looking forward to having this on my arm.

@nickbild
Copy link
Owner

nickbild commented Jun 6, 2021

Great, thanks for testing! I've updated the README.

@nickbild nickbild closed this as completed Jun 6, 2021
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