Skip to content

Commit e44d126

Browse files
authored
Fix URL in examples + minor edits (#29)
1 parent dbf3c3c commit e44d126

21 files changed

Lines changed: 64 additions & 25 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88

9+
## [0.4.5] - 2024-01-05
10+
- fix URL in examples
11+
- minor edits
12+
13+
914
## [0.4.4] - 2023-10-18
1015
- update readme.md badges
1116
- update examples
1217
- add two step example
1318
- minor edits
1419

15-
1620
## [0.4.3] - 2022-11-23
1721
- add changelog.md
1822
- add RP2040 to build-CI

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2023 Rob Tillaart
3+
Copyright (c) 2012-2024 Rob Tillaart
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

RunningAverage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// FILE: RunningAverage.cpp
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.4.4
4+
// VERSION: 0.4.5
55
// DATE: 2011-01-30
66
// PURPOSE: Arduino library to calculate the running average by means of a circular buffer
77
// URL: https://github.com/RobTillaart/RunningAverage

RunningAverage.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@
22
//
33
// FILE: RunningAverage.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.4.4
5+
// VERSION: 0.4.5
66
// DATE: 2011-01-30
77
// PURPOSE: Arduino library to calculate the running average by means of a circular buffer
88
// URL: https://github.com/RobTillaart/RunningAverage
9+
//
10+
// The library stores N individual values in a circular buffer,
11+
// to calculate the running average.
912

1013

1114
#include "Arduino.h"
1215

1316

14-
#define RUNNINGAVERAGE_LIB_VERSION (F("0.4.4"))
17+
#define RUNNINGAVERAGE_LIB_VERSION (F("0.4.5"))
1518

1619

1720
class RunningAverage

examples/fillValue/fillValue.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
// FILE: fillValue.ino
33
// AUTHOR: Rob Tillaart
44
// DATE: 2012-12-30
5-
// PUPROSE: demo + timing of fillValue
5+
// PURPOSE: demo + timing of fillValue
6+
// URL: https://github.com/RobTillaart/RunningAverage
67

78

89
#include "RunningAverage.h"
910

11+
1012
RunningAverage myRA(10);
1113
int samples = 0;
1214

examples/ra_300/ra_300.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
// FILE: ra_300.ino
33
// AUTHOR: Rob Tillaart
44
// DATE: 2021-05-26
5-
// PUPROSE: demonstrate large (16 bit) buffer
5+
// PURPOSE: demonstrate large (16 bit) buffer
6+
// URL: https://github.com/RobTillaart/RunningAverage
67

78

89
#include "RunningAverage.h"
910

11+
1012
RunningAverage myRA(300);
1113
int samples = 0;
1214

examples/ra_300_last/ra_300_last.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
// FILE: ra_300.ino
33
// AUTHOR: Rob Tillaart
44
// DATE: 2021-05-26
5-
// PUPROSE: demonstrate large (16 bit) buffer
5+
// PURPOSE: demonstrate large (16 bit) buffer
6+
// URL: https://github.com/RobTillaart/RunningAverage
67

78

89
#include "RunningAverage.h"
910

11+
1012
RunningAverage myRA(300);
1113
int samples = 0;
1214

examples/ra_FastAverageTest/ra_FastAverageTest.ino

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
// FILE: ra_FastAverageTest.ino
33
// AUTHOR: Rob Tillaart
44
// DATE: 2015-sep-04
5-
// PUPROSE: demo to see if different average algorithm give different result
5+
// PURPOSE: demo to see if different average algorithm give different result
6+
// URL: https://github.com/RobTillaart/RunningAverage
67

78

89
#include "RunningAverage.h"
910

11+
1012
RunningAverage myRA(16);
1113

1214
float avg = 0;
@@ -24,7 +26,9 @@ void setup(void)
2426
Serial.println(__FILE__);
2527
Serial.print("RUNNINGAVERAGE_LIB_VERSION: ");
2628
Serial.println(RUNNINGAVERAGE_LIB_VERSION);
27-
myRA.clear(); // explicitly start clean
29+
30+
// explicitly start clean
31+
myRA.clear();
2832

2933
measure_duration();
3034
}
@@ -67,8 +71,8 @@ void test(long n)
6771
myRA.addValue(rn * 0.001);
6872
if ( i % 1000 == 0)
6973
{
70-
// the order of the next two lines is important as getAverage() resets the _sum
71-
// used by the getFastAverage();
74+
// the order of the next two lines is important as getAverage() resets the _sum
75+
// used by the getFastAverage();
7276
favg = myRA.getFastAverage();
7377
avg = myRA.getAverage();
7478
diff = abs(avg - favg);

examples/ra_MinMaxBufferTest/ra_MinMaxBufferTest.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
// FILE: ra_MinMaxBufferTest.ino
33
// AUTHOR: Rob Tillaart
44
// DATE: 2015-09-04
5-
// PUPROSE: demo
5+
// PURPOSE: demo
6+
// URL: https://github.com/RobTillaart/RunningAverage
67

78

89
#include "RunningAverage.h"
910

11+
1012
RunningAverage myRA(10);
1113
int samples = 0;
1214

examples/ra_MinMaxTest/ra_MinMaxTest.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
// FILE: runningAverageMinMaxTest.ino
33
// AUTHOR: Rob Tillaart
44
// DATE: 2015-apr-10
5-
// PUPROSE: demo
5+
// PURPOSE: demo
6+
// URL: https://github.com/RobTillaart/RunningAverage
67

78

89
#include "RunningAverage.h"
910

11+
1012
RunningAverage myRA(10);
1113
int samples = 0;
1214

0 commit comments

Comments
 (0)