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

Design decision to provide compatibility with M5Stack Core2 #18

Open
Girgitt opened this issue Jan 18, 2021 · 5 comments
Open

Design decision to provide compatibility with M5Stack Core2 #18

Girgitt opened this issue Jan 18, 2021 · 5 comments

Comments

@Girgitt
Copy link

Girgitt commented Jan 18, 2021

I have a working code that supports M5Stack Core2. A couple of things require design decisions to make the cfGUI library compatible with Core and Core2 (if both should be supported by the same code base - this is also a design decision on its own):

  1. Core2 uses a different library (M5Core2 instead of M5Stack) and WIdget.h includes M5Stack,h. Since in the M5Stack codebase I have not experienced the existence of namespaces.. either one must be included. How should the conditional import be approached? is a pre-processor condition acceptable (#ifdef M5Core and #ifdef M5Core2) that would import selected header file in Widget,h?
  2. Core2 has a touchscreen and the initial support for it in the M5Core2 uses a "Point" structure which conflicts with the "Point" structure name used in cfGUI. Primitive fix is to rename the structure in cfGUI..
  3. Touchscreen input changes the navigation and widgets interaction philosophy - maybe Core2 support should be done in a different branch? Or if you (@JF002) do not plan the develop this library any further - should I continue adding features in my fork?
@lidense
Copy link

lidense commented Apr 25, 2022

Hi, I would be very interested in getting a version compatible with M5stackCore2 can you please tell me if there is on and if not how to adapt the code ?
Thanks

@JF002
Copy link
Owner

JF002 commented Apr 30, 2022

I'm really sorry I did not answer the original post from @Girgitt. As you've probably noticed, I haven't worked on this project for a long time, and I do not plan on maintaining it in the near future.
Feel free however to fork the project and add feature and support for newer M5Stack devices !

@Girgitt
Copy link
Author

Girgitt commented Jun 30, 2022

Thank you for responding :) I actually made a fork and adopted your code for M5stackCore2 - currently on a branch: https://github.com/Girgitt/cfGUI/tree/m5core2-support

@wiless
Copy link

wiless commented Aug 25, 2024

@Girgitt is the new fork in working condition ?

@Girgitt
Copy link
Author

Girgitt commented Dec 10, 2024

@Girgitt is the new fork in working condition ?

I have not touched it since initial changes so it should work.

However eventually I modified a different project to satisfactory results in my use case, which is wall touch panel in my home automation setup (https://github.com/Girgitt/Homepoint/tree/dev_1_0) and unfortunately do not use cfGUI.

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

4 participants