From 1e15bf62e07a2286fdb90535d1a5533358c5094a Mon Sep 17 00:00:00 2001 From: T81 <tolis81@gmail.com> Date: Wed, 16 May 2018 17:29:39 +0300 Subject: [PATCH 1/2] Folder structure according Arduino IDE 1.5 Library specification --- LICENSE | 21 +++++++++++++++++++++ README.md | 10 ++++++++++ README.txt | 11 ----------- library.json | 19 ------------------- PID_v1.cpp => src/PID_v1.cpp | 0 PID_v1.h => src/PID_v1.h | 0 6 files changed, 31 insertions(+), 30 deletions(-) create mode 100644 LICENSE create mode 100644 README.md delete mode 100644 README.txt delete mode 100644 library.json rename PID_v1.cpp => src/PID_v1.cpp (100%) rename PID_v1.h => src/PID_v1.h (100%) diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..89db746 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 T81 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..e2603c7 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# Arduino PID Library +### Version 1.2.1 +###### by Brett Beauregard <br3ttb@gmail.com> - [brettbeauregard.com](brettbeauregard.com) + +This Library is licensed under the MIT License + +- For an ultra-detailed explanation of why the code is the way it is, please visit: + http://brettbeauregard.com/blog/2011/04/improving-the-beginners-pid-introduction/ + +- For function documentation see: http://playground.arduino.cc/Code/PIDLibrary \ No newline at end of file diff --git a/README.txt b/README.txt deleted file mode 100644 index 3f2fb63..0000000 --- a/README.txt +++ /dev/null @@ -1,11 +0,0 @@ -*************************************************************** -* Arduino PID Library - Version 1.2.1 -* by Brett Beauregard <br3ttb@gmail.com> brettbeauregard.com -* -* This Library is licensed under the MIT License -*************************************************************** - - - For an ultra-detailed explanation of why the code is the way it is, please visit: - http://brettbeauregard.com/blog/2011/04/improving-the-beginners-pid-introduction/ - - - For function documentation see: http://playground.arduino.cc/Code/PIDLibrary diff --git a/library.json b/library.json deleted file mode 100644 index cf2510c..0000000 --- a/library.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "PID", - "keywords": "PID, controller, signal", - "description": "A PID controller seeks to keep some input variable close to a desired setpoint by adjusting an output. The way in which it does this can be 'tuned' by adjusting three parameters (P,I,D).", - "url": "http://playground.arduino.cc/Code/PIDLibrary", - "include": "PID_v1", - "authors": - [ - { - "name": "Brett Beauregard" - } - ], - "repository": - { - "type": "git", - "url": "https://github.com/br3ttb/Arduino-PID-Library.git" - }, - "frameworks": "arduino" -} diff --git a/PID_v1.cpp b/src/PID_v1.cpp similarity index 100% rename from PID_v1.cpp rename to src/PID_v1.cpp diff --git a/PID_v1.h b/src/PID_v1.h similarity index 100% rename from PID_v1.h rename to src/PID_v1.h From 2871a0fa96b1b5587b5e3aba3997434b3a78d0be Mon Sep 17 00:00:00 2001 From: T81 <tolis81@gmail.com> Date: Thu, 24 May 2018 13:11:25 +0300 Subject: [PATCH 2/2] Restored library.json file --- library.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 library.json diff --git a/library.json b/library.json new file mode 100644 index 0000000..cf2510c --- /dev/null +++ b/library.json @@ -0,0 +1,19 @@ +{ + "name": "PID", + "keywords": "PID, controller, signal", + "description": "A PID controller seeks to keep some input variable close to a desired setpoint by adjusting an output. The way in which it does this can be 'tuned' by adjusting three parameters (P,I,D).", + "url": "http://playground.arduino.cc/Code/PIDLibrary", + "include": "PID_v1", + "authors": + [ + { + "name": "Brett Beauregard" + } + ], + "repository": + { + "type": "git", + "url": "https://github.com/br3ttb/Arduino-PID-Library.git" + }, + "frameworks": "arduino" +}