From 3ec9b1e3686108de7f6062ae0415c58f7e69828f Mon Sep 17 00:00:00 2001 From: T81 Date: Wed, 16 May 2018 16:01:28 +0300 Subject: [PATCH 1/3] Folder structure according Arduino IDE 1.5 Library specification --- INSTALL.txt | 1 - README.md | 5 +++++ Bounce1.zip => extras/Bounce1.zip | Bin .../BouncySwitch_lockout.png | Bin .../BouncySwitch_stable.png | Bin ...circuit-bounce-change-duration-retrigger.png | Bin library.json | 16 ---------------- Bounce2.cpp => src/Bounce2.cpp | 0 Bounce2.h => src/Bounce2.h | 0 9 files changed, 5 insertions(+), 17 deletions(-) delete mode 100644 INSTALL.txt rename Bounce1.zip => extras/Bounce1.zip (100%) rename BouncySwitch_lockout.png => extras/BouncySwitch_lockout.png (100%) rename BouncySwitch_stable.png => extras/BouncySwitch_stable.png (100%) rename {examples => extras}/circuit-bounce-change-duration-retrigger.png (100%) delete mode 100644 library.json rename Bounce2.cpp => src/Bounce2.cpp (100%) rename Bounce2.h => src/Bounce2.h (100%) diff --git a/INSTALL.txt b/INSTALL.txt deleted file mode 100644 index 0bd2f8e..0000000 --- a/INSTALL.txt +++ /dev/null @@ -1 +0,0 @@ -Put the "Bounce2" folder in your Arduino or Wiring "libraries" folder. diff --git a/README.md b/README.md index 211a035..83d8fa2 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,11 @@ Download the latest version (version 2) here : https://github.com/thomasfredericks/Bounce2/archive/master.zip +INSTALLATION +===================== +Put the "Bounce2" folder in your Arduino or Wiring "libraries" folder. + + DOCUMENTATION ===================== diff --git a/Bounce1.zip b/extras/Bounce1.zip similarity index 100% rename from Bounce1.zip rename to extras/Bounce1.zip diff --git a/BouncySwitch_lockout.png b/extras/BouncySwitch_lockout.png similarity index 100% rename from BouncySwitch_lockout.png rename to extras/BouncySwitch_lockout.png diff --git a/BouncySwitch_stable.png b/extras/BouncySwitch_stable.png similarity index 100% rename from BouncySwitch_stable.png rename to extras/BouncySwitch_stable.png diff --git a/examples/circuit-bounce-change-duration-retrigger.png b/extras/circuit-bounce-change-duration-retrigger.png similarity index 100% rename from examples/circuit-bounce-change-duration-retrigger.png rename to extras/circuit-bounce-change-duration-retrigger.png diff --git a/library.json b/library.json deleted file mode 100644 index 327baa8..0000000 --- a/library.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "Bounce2", - "keywords": "bounce, signal, input, ouput", - "description": "Debouncing library for Arduino or Wiring", - "repository": { - "type": "git", - "url": "https://github.com/thomasfredericks/Bounce2.git" - }, - "version": "2.41", - "exclude": [ - "*.png", - "*.zip" - ], - "frameworks": "arduino", - "platforms": "*" -} diff --git a/Bounce2.cpp b/src/Bounce2.cpp similarity index 100% rename from Bounce2.cpp rename to src/Bounce2.cpp diff --git a/Bounce2.h b/src/Bounce2.h similarity index 100% rename from Bounce2.h rename to src/Bounce2.h -- 2.54.0 From 03c7ddcf87290b2f2ca628a8ff6b12ad2d285ef9 Mon Sep 17 00:00:00 2001 From: T81 Date: Tue, 22 May 2018 15:01:49 +0300 Subject: [PATCH 2/3] Restored library.json file. Added Travis CI support --- .travis.yml | 20 ++++++++++++++++++++ library.json | 16 ++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .travis.yml create mode 100644 library.json diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..546856f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +language: python + +cache: + directories: + - "~/.platformio" + +install: +- pip install -U platformio + +env: +- BOARD=uno +- BOARD=leonardo +- BOARD=megaatmega2560 +- BOARD=due + +script: +- set -eo pipefail; + for e in examples/*; do + platformio ci --board=$BOARD --lib=. $e/*; +done \ No newline at end of file diff --git a/library.json b/library.json new file mode 100644 index 0000000..327baa8 --- /dev/null +++ b/library.json @@ -0,0 +1,16 @@ +{ + "name": "Bounce2", + "keywords": "bounce, signal, input, ouput", + "description": "Debouncing library for Arduino or Wiring", + "repository": { + "type": "git", + "url": "https://github.com/thomasfredericks/Bounce2.git" + }, + "version": "2.41", + "exclude": [ + "*.png", + "*.zip" + ], + "frameworks": "arduino", + "platforms": "*" +} -- 2.54.0 From 5bd2f74b863af8f2fe1c8766db49db6a4491bac0 Mon Sep 17 00:00:00 2001 From: T81 Date: Tue, 22 May 2018 15:10:28 +0300 Subject: [PATCH 3/3] Created Travis CI branch --HG-- branch : Travis CI -- 2.54.0