From 4cad241156e2319cd36456c1809b1b6973d7d6e2 Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 13 Sep 2017 15:46:44 +0700 Subject: [PATCH] add example --- libraries/HardwareEncoder/LICENSE | 21 +++++++++++++++++++ .../examples/OneKnob/OneKnob.ino | 18 ++++++++++++++++ libraries/HardwareEncoder/keywords.txt | 0 libraries/HardwareEncoder/library.properties | 10 +++++++++ 4 files changed, 49 insertions(+) create mode 100644 libraries/HardwareEncoder/LICENSE create mode 100644 libraries/HardwareEncoder/examples/OneKnob/OneKnob.ino create mode 100644 libraries/HardwareEncoder/keywords.txt create mode 100644 libraries/HardwareEncoder/library.properties diff --git a/libraries/HardwareEncoder/LICENSE b/libraries/HardwareEncoder/LICENSE new file mode 100644 index 00000000..19a9cd85 --- /dev/null +++ b/libraries/HardwareEncoder/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2016 Adafruit Industries + +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/libraries/HardwareEncoder/examples/OneKnob/OneKnob.ino b/libraries/HardwareEncoder/examples/OneKnob/OneKnob.ino new file mode 100644 index 00000000..186af0b3 --- /dev/null +++ b/libraries/HardwareEncoder/examples/OneKnob/OneKnob.ino @@ -0,0 +1,18 @@ +/********************************************************************* + This is an example for our nRF52 based Bluefruit LE modules + + Pick one up today in the adafruit shop! + + Adafruit invests time and resources providing this open source code, + please support Adafruit and open-source hardware by purchasing + products from Adafruit! + + MIT license, check LICENSE for more information + All text above, and the splash screen below must be included in + any redistribution +*********************************************************************/ + +#include +#include "HardwareEncoder.h" + + diff --git a/libraries/HardwareEncoder/keywords.txt b/libraries/HardwareEncoder/keywords.txt new file mode 100644 index 00000000..e69de29b diff --git a/libraries/HardwareEncoder/library.properties b/libraries/HardwareEncoder/library.properties new file mode 100644 index 00000000..303c8eac --- /dev/null +++ b/libraries/HardwareEncoder/library.properties @@ -0,0 +1,10 @@ +name=Adafruit Hardware Encoder for Bluefruit52 +version=0.7.5 +author=Adafruit +maintainer=Adafruit +sentence=Arduino library for nRF52-based Adafruit Bluefruit LE modules +paragraph=Arduino library for nRF52-based Adafruit Bluefruit LE modules +category=Communication +url=https://github.com/adafruit/Adafruit_nRF52_Arduino +architectures=* +includes=HardwareEncoder.h