From 5b76495c743612a481f729b0741a79a15a5f3352 Mon Sep 17 00:00:00 2001 From: rob tillaart Date: Fri, 19 Jun 2020 14:47:53 +0200 Subject: [PATCH] 0.1.0 release --- PulsePattern.cpp | 14 +++++--------- PulsePattern.h | 14 ++++++-------- library.json | 9 +++------ library.properties | 4 ++-- 4 files changed, 16 insertions(+), 25 deletions(-) diff --git a/PulsePattern.cpp b/PulsePattern.cpp index 4d16b50..480169f 100644 --- a/PulsePattern.cpp +++ b/PulsePattern.cpp @@ -1,8 +1,9 @@ // // FILE: PulsePattern.cpp // AUTHOR: Rob dot Tillaart at gmail dot com -// VERSION: see PULSEPATTERN_LIB_VERSION in .h -// PURPOSE: PulsePattern library for Arduino +// VERSION: 0.1.0 +// DATE: 2012-11-23 +// PURPOSE: Arduino Library to generate repeating pulse patterns // // HISTORY: // 0.0.1 - 2012-11-23 initial version @@ -13,8 +14,7 @@ // 0.0.6 - 2015-04-18 completed the state machine // 0.0.7 - 2017-07-16 refactor & review // 0.0.8 - 2018-12-13 refactor -> remove some warnings -// -// Released to the public domain +// 0.1.0 2020-06-19 #pragma once; remove pre 1.0 support; refactor // // TODO // - fast function iso array to return the next period? @@ -31,11 +31,7 @@ #include "PulsePattern.h" -#if defined(ARDUINO) && ARDUINO >= 100 #include "Arduino.h" -#else -#include "WProgram.h" -#endif // Predefined generator (singleton) PulsePattern PPGenerator; @@ -128,4 +124,4 @@ void PulsePattern::setTimer(const uint16_t cc) const TIMSK1 = _BV (OCIE1A); // interrupt on Compare A Match } -// END OF FILE \ No newline at end of file +// -- END OF FILE -- diff --git a/PulsePattern.h b/PulsePattern.h index 63eb520..8ae48b1 100644 --- a/PulsePattern.h +++ b/PulsePattern.h @@ -1,18 +1,17 @@ -#ifndef PulsePattern_h -#define PulsePattern_h +#pragma once // // FILE: PulsePattern.h // AUTHOR: Rob dot Tillaart at gmail dot com -// PURPOSE: PulsePattern library for Arduino +// VERSION: 0.1.0 +// DATE: 2012-11-23 +// PURPOSE: Arduino Library to generate repeating pulse patterns // sends a pulse pattern to a digital pin (continuously) // HISTORY: See PulsePattern.cpp // -// Released to the public domain -// #include -#define PULSEPATTERN_LIB_VERSION "0.0.8" +#define PULSEPATTERN_LIB_VERSION "0.1.0" #define NOTINIT -1 #define STOPPED 0 @@ -55,5 +54,4 @@ class PulsePattern extern PulsePattern PPGenerator; -#endif -// END OF FILE \ No newline at end of file +// -- END OF FILE -- diff --git a/library.json b/library.json index cb4305e..37c71a4 100644 --- a/library.json +++ b/library.json @@ -1,7 +1,7 @@ { "name": "PulsePattern", "keywords": "Pulse,pattern,repeating", - "description": "Library to generate repeating pulse patterns. (uses timer1)", + "description": "Library to generate repeating pulse patterns. (uses timer1) AVR only", "authors": [ { @@ -15,10 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/PulsePattern.git" }, - "version":"0.0.8", + "version":"0.1.0", "frameworks": "arduino", - "platforms": "avr", - "export": { - "include": "PulsePattern" - } + "platforms": "avr" } diff --git a/library.properties b/library.properties index 91d8136..6d03e73 100644 --- a/library.properties +++ b/library.properties @@ -1,8 +1,8 @@ name=PulsePattern -version=0.0.8 +version=0.1.0 author=Rob Tillaart maintainer=Rob Tillaart -sentence=Library to generate repeating pulse patterns. +sentence=Library to generate repeating pulse patterns. (AVR only) paragraph=uses timer1 category=Signal Input/Output url=https://github.com/RobTillaart/PulsePattern