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

Custom configurations for different boards #465

Open
al3xsh opened this issue May 23, 2022 · 0 comments
Open

Custom configurations for different boards #465

al3xsh opened this issue May 23, 2022 · 0 comments

Comments

@al3xsh
Copy link

al3xsh commented May 23, 2022

Feature Request or Enhancement

I use multiple different Arduino boards with different displays and different configurations. I was wondering if it was possible to have configuration specific files with the project and keep the GUIslice library generic?

As a specific example, I am currently using an Arduino MKR WiFi 1010 with the adafruit touch screen breakout (ili9341-ft6206). To make this work correctly I have had to change the configuration file for this specific setup:

#define GSLC_USE_PROGMEM      0

and

  // For shields, the following pinouts are typically hardcoded
  #define ADAGFX_PIN_CS       7    // Display chip select
  #define ADAGFX_PIN_DC       6     // Display SPI data/command
  #define ADAGFX_PIN_RST      0     // Display Reset

However, if I use a different set up (i.e. an Arduino Uno with the shield rather than the breakout) these will change.

Another option might be to have a separate instance of the GUIslice library for each sketch (ideally under the sketch folder) - but I can't work out how to do that! A quick search suggests it isn't possible using the standard Arduino IDE (but I might be wrong!).

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

1 participant