From d4ed67ec7c3390b01c0beee222501527f10ec4ea Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 27 May 2018 21:55:42 -0700 Subject: [PATCH] Move sketch to appropriately named subfolder The Arduino IDE requires that a sketch be located in a folder of the same name. Although the name of the repository does match the sketch name, when GitHub's popular Clone or download > Download ZIP feature is used to download the contents of a repository the branch/release/commit name is appended to the folder name, causing a mismatch. When opening a file that does not meet this sketch/folder name matching requirement the Arduino IDE presents a dialog: The file "LEDLAMP_FASTLEDs.ino" needs to be inside a sketch folder named "LEDLAMP_FASTLEDs". Create this folder, move the file, and continue? After clicking "OK" the Arduino IDE currently moves only the file LEDLAMP_FASTLEDs.ino to the new folder, leaving behind the other source files. This causes compilation of the sketch to fail: LEDLAMP_FASTLEDs-master\LEDLAMP_FASTLEDs\LEDLAMP_FASTLEDs.ino:1:25: fatal error: definitions.h: No such file or directory --- .../LEDLAMP_FASTLEDs.ino | 2 +- colormodes.h => LEDLAMP_FASTLEDs/colormodes.h | 2 +- {data => LEDLAMP_FASTLEDs/data}/edit.htm.gz | Bin {data => LEDLAMP_FASTLEDs/data}/favicon.ico | Bin {data => LEDLAMP_FASTLEDs/data}/graphs.js.gz | Bin {data => LEDLAMP_FASTLEDs/data}/index.htm | 0 definitions.h => LEDLAMP_FASTLEDs/definitions.h | 2 +- .../mycolorpalettes.h | 2 +- .../request_handlers.h | 2 +- .../spiffs_webserver.h | 2 +- 10 files changed, 6 insertions(+), 6 deletions(-) rename LEDLAMP_FASTLEDs.ino => LEDLAMP_FASTLEDs/LEDLAMP_FASTLEDs.ino (99%) rename colormodes.h => LEDLAMP_FASTLEDs/colormodes.h (99%) rename {data => LEDLAMP_FASTLEDs/data}/edit.htm.gz (100%) rename {data => LEDLAMP_FASTLEDs/data}/favicon.ico (100%) rename {data => LEDLAMP_FASTLEDs/data}/graphs.js.gz (100%) rename {data => LEDLAMP_FASTLEDs/data}/index.htm (100%) rename definitions.h => LEDLAMP_FASTLEDs/definitions.h (99%) rename mycolorpalettes.h => LEDLAMP_FASTLEDs/mycolorpalettes.h (99%) rename request_handlers.h => LEDLAMP_FASTLEDs/request_handlers.h (99%) rename spiffs_webserver.h => LEDLAMP_FASTLEDs/spiffs_webserver.h (99%) diff --git a/LEDLAMP_FASTLEDs.ino b/LEDLAMP_FASTLEDs/LEDLAMP_FASTLEDs.ino similarity index 99% rename from LEDLAMP_FASTLEDs.ino rename to LEDLAMP_FASTLEDs/LEDLAMP_FASTLEDs.ino index ec56d5b..6dfac7e 100644 --- a/LEDLAMP_FASTLEDs.ino +++ b/LEDLAMP_FASTLEDs/LEDLAMP_FASTLEDs.ino @@ -425,4 +425,4 @@ void nextPattern() - + diff --git a/colormodes.h b/LEDLAMP_FASTLEDs/colormodes.h similarity index 99% rename from colormodes.h rename to LEDLAMP_FASTLEDs/colormodes.h index 7afa607..4ae9be2 100644 --- a/colormodes.h +++ b/LEDLAMP_FASTLEDs/colormodes.h @@ -280,4 +280,4 @@ void theaterChase() { typedef void (*SimplePatternList[])(); SimplePatternList gPatterns = { rainbow, confetti, sinelon, juggle, bpm, palette_anims, ripple, comet }; -//************************************************************************************************** +//************************************************************************************************** diff --git a/data/edit.htm.gz b/LEDLAMP_FASTLEDs/data/edit.htm.gz similarity index 100% rename from data/edit.htm.gz rename to LEDLAMP_FASTLEDs/data/edit.htm.gz diff --git a/data/favicon.ico b/LEDLAMP_FASTLEDs/data/favicon.ico similarity index 100% rename from data/favicon.ico rename to LEDLAMP_FASTLEDs/data/favicon.ico diff --git a/data/graphs.js.gz b/LEDLAMP_FASTLEDs/data/graphs.js.gz similarity index 100% rename from data/graphs.js.gz rename to LEDLAMP_FASTLEDs/data/graphs.js.gz diff --git a/data/index.htm b/LEDLAMP_FASTLEDs/data/index.htm similarity index 100% rename from data/index.htm rename to LEDLAMP_FASTLEDs/data/index.htm diff --git a/definitions.h b/LEDLAMP_FASTLEDs/definitions.h similarity index 99% rename from definitions.h rename to LEDLAMP_FASTLEDs/definitions.h index 654e8fc..92bbc9e 100644 --- a/definitions.h +++ b/LEDLAMP_FASTLEDs/definitions.h @@ -74,4 +74,4 @@ typedef struct ledstate LEDState; // Define the datatype LEDState LEDState ledstates[NUM_LEDS]; // Get an array of led states to store the state of the whole strip LEDState main_color; // Store the "main color" of the strip used in single color modes LEDState glitter_color; // Store the "glitter color" of the strip for glitter mode - + diff --git a/mycolorpalettes.h b/LEDLAMP_FASTLEDs/mycolorpalettes.h similarity index 99% rename from mycolorpalettes.h rename to LEDLAMP_FASTLEDs/mycolorpalettes.h index c0a7166..24f5311 100644 --- a/mycolorpalettes.h +++ b/LEDLAMP_FASTLEDs/mycolorpalettes.h @@ -1013,4 +1013,4 @@ DEFINE_GRADIENT_PALETTE( water1_gp ) { 198, 16, 81,184, 232, 79,136,190, 255, 1, 1, 46}; - + diff --git a/request_handlers.h b/LEDLAMP_FASTLEDs/request_handlers.h similarity index 99% rename from request_handlers.h rename to LEDLAMP_FASTLEDs/request_handlers.h index 263a373..7ae2e9b 100644 --- a/request_handlers.h +++ b/LEDLAMP_FASTLEDs/request_handlers.h @@ -301,4 +301,4 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t lenght void checkForRequests() { webSocket.loop(); server.handleClient(); - } + } diff --git a/spiffs_webserver.h b/LEDLAMP_FASTLEDs/spiffs_webserver.h similarity index 99% rename from spiffs_webserver.h rename to LEDLAMP_FASTLEDs/spiffs_webserver.h index a59565e..c68af2f 100644 --- a/spiffs_webserver.h +++ b/LEDLAMP_FASTLEDs/spiffs_webserver.h @@ -155,4 +155,4 @@ void handleFileList() { output += "]"; server.send(200, "text/json", output); } - +