From ef543a652ca7012a96eaeaa74ef2071a1c624813 Mon Sep 17 00:00:00 2001 From: atanisoft Date: Sat, 16 Dec 2017 06:50:23 -0800 Subject: [PATCH] Update User_Setup_Select.h Adding ability to load settings from the calling program rather than modifying the library for each project that uses it. This is mostly for PlatformIO IDE which manages the libraries differently than Adruino IDE. --- User_Setup_Select.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/User_Setup_Select.h b/User_Setup_Select.h index 71050e4..3875450 100644 --- a/User_Setup_Select.h +++ b/User_Setup_Select.h @@ -15,7 +15,7 @@ // Customised User_Setup files are stored in the "User_Setups" folder. // Only ONE line should be uncommented. Add extra lines and files as needed. - +#ifndef USER_SETUP_LOADED #include // Default setup is root library folder //#include // Setup file configured for my ILI9341 @@ -31,8 +31,7 @@ //#include // Setup file configured for my stock RPi TFT with touch //#include // Setup file template for copying/editting - - +#endif ///////////////////////////////////////////////////////////////////////////////////// // // @@ -74,4 +73,4 @@ #define PIN_HWCS 0 #define PIN_D11 9 -#define PIN_D12 10 \ No newline at end of file +#define PIN_D12 10