Skip to content

Commit

Permalink
Merge pull request #2 from RobTillaart/develop
Browse files Browse the repository at this point in the history
0.1.0 release
  • Loading branch information
RobTillaart authored Jun 19, 2020
2 parents bef8eb0 + 5b76495 commit 9348398
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 25 deletions.
14 changes: 5 additions & 9 deletions PulsePattern.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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?
Expand All @@ -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;
Expand Down Expand Up @@ -128,4 +124,4 @@ void PulsePattern::setTimer(const uint16_t cc) const
TIMSK1 = _BV (OCIE1A); // interrupt on Compare A Match
}

// END OF FILE
// -- END OF FILE --
14 changes: 6 additions & 8 deletions PulsePattern.h
Original file line number Diff line number Diff line change
@@ -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 <inttypes.h>

#define PULSEPATTERN_LIB_VERSION "0.0.8"
#define PULSEPATTERN_LIB_VERSION "0.1.0"

#define NOTINIT -1
#define STOPPED 0
Expand Down Expand Up @@ -55,5 +54,4 @@ class PulsePattern

extern PulsePattern PPGenerator;

#endif
// END OF FILE
// -- END OF FILE --
9 changes: 3 additions & 6 deletions library.json
Original file line number Diff line number Diff line change
@@ -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":
[
{
Expand All @@ -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"
}
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name=PulsePattern
version=0.0.8
version=0.1.0
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
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
Expand Down

0 comments on commit 9348398

Please sign in to comment.