Skip to content

Custom configurations for different boards #465

@al3xsh

Description

@al3xsh

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!).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions