Skip to content

Commit 4a5de22

Browse files
authored
add changelog.md (#6)
* add changelog.md
1 parent d7af86a commit 4a5de22

File tree

7 files changed

+81
-36
lines changed

7 files changed

+81
-36
lines changed

.arduino-ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
platforms:
2+
rpipico:
3+
board: rp2040:rp2040:rpipico
4+
package: rp2040:rp2040
5+
gcc:
6+
features:
7+
defines:
8+
- ARDUINO_ARCH_RP2040
9+
warnings:
10+
flags:
11+
12+
packages:
13+
rp2040:rp2040:
14+
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
15+
116
compile:
217
# Choosing to run compilation tests on 2 different Arduino platforms
318
platforms:
@@ -9,3 +24,4 @@ compile:
924
- esp32
1025
# - esp8266
1126
# - mega2560
27+
- rpipico

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Change Log MultiMap
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/).
7+
8+
9+
## [0.1.6] - 2022-11-17
10+
- add RP2040 in build-CI
11+
- add changelog.md
12+
- update readme.md
13+
- clean up unit test
14+
15+
16+
## [0.1.5] - 2021-12-22
17+
- update library.json
18+
- update readme
19+
- update license
20+
- minor edits
21+
22+
## [0.1.4] - 2021-05-27
23+
- fix Arduino-lint
24+
25+
## [0.1.3] - 2021-01-02
26+
- add Arduino-CI
27+
28+
## [0.1.2] - 2020-06-19
29+
- fix library.json
30+
31+
## [0.1.1] - 2020-04-09
32+
33+
## [0.1.0] - 2015-03-29
34+
35+
----
36+
37+
..... eons passed ...
38+
39+
-----
40+
41+
## [0.0.1] - 2011-01-26
42+
- initial version.
43+

MultiMap.h

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,15 @@
22
//
33
// FILE: MultiMap.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.1.5
5+
// VERSION: 0.1.6
66
// DATE: 2011-01-26
77
// PURPOSE: Arduino library for fast non-linear mapping or interpolation of values
88
// URL: https://github.com/RobTillaart/MultiMap
99
// URL: http://playground.arduino.cc/Main/MultiMap
10-
//
11-
// HISTORY:
12-
// 0.0.1 2011-01-26 initial version (see forum)
13-
// ..... eons passed ...
14-
// 0.1.0 2015-03-29
15-
// 0.1.1 2020-04-09
16-
// 0.1.2 2020-06-19 fix library.json
17-
// 0.1.3 2021-01-02 add Arduino-CI
18-
// 0.1.4 2021-05-27 fix Arduino-lint
19-
// 0.1.5 2021-12-22 update library.json, readme, license, minor edits
2010

2111

22-
#define MULTIMAP_LIB_VERSION (F("0.1.5"))
12+
13+
#define MULTIMAP_LIB_VERSION (F("0.1.6"))
2314

2415

2516
#include "Arduino.h"
@@ -47,9 +38,10 @@ T multiMap(T value, T* _in, T* _out, uint8_t size)
4738

4839

4940
/*
50-
* speed optimized version if inputs do not change often e.g. 2 2 2 2 2 3 3 3 3 5 5 5 5 5 5 8 8 8 8 5 5 5 5 5
51-
*
52-
// note: the in array should have increasing values
41+
// speed optimized version if inputs do not change often e.g. 2 2 2 2 2 3 3 3 3 5 5 5 5 5 5 8 8 8 8 5 5 5 5 5
42+
// implements a minimal cache
43+
//
44+
// note: the in array should have increasing values
5345
5446
template<typename T>
5547
T multiMap(T value, T* _in, T* _out, uint8_t size)

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,20 @@ Please note the fail example as this shows that in the intern math overflow can
5151

5252
## Future
5353

54-
- Investigate class implementation for performance / footprint
54+
#### must
55+
- improve documentation
56+
57+
#### should
58+
- Investigate class implementation
59+
- performance / footprint
60+
- less parameter passing
61+
62+
#### could
5563
- flag if input value was "IN_MIN" < input < "IN_MAX",
5664
now it is constrained without user being informed.
5765
- extend unit tests
5866

59-
60-
**wont**
67+
#### wont
6168
- should the lookup tables be merged into one array of pairs?
6269
- you cannot reuse e.g. the input array then. (memory footprint)
6370

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "git",
1616
"url": "https://github.com/RobTillaart/MultiMap.git"
1717
},
18-
"version": "0.1.5",
18+
"version": "0.1.6",
1919
"license": "MIT",
2020
"frameworks": "arduino",
2121
"platforms": "*",

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=MultiMap
2-
version=0.1.5
2+
version=0.1.6
33
author=Rob Tillaart <[email protected]>
44
maintainer=Rob Tillaart <[email protected]>
55
sentence=Library for fast non-linear interpolation by means of two arrays.

test/unit_test_001.cpp

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,26 +45,13 @@ unittest_teardown()
4545
{
4646
}
4747

48-
/*
49-
unittest(test_new_operator)
50-
{
51-
assertEqualINF(exp(800));
52-
assertEqualINF(0.0/0.0);
53-
assertEqualINF(42);
54-
55-
assertEqualNAN(INFINITY - INFINITY);
56-
assertEqualNAN(0.0/0.0);
57-
assertEqualNAN(42);
58-
}
59-
*/
60-
6148

6249
unittest(test_float)
6350
{
64-
// based on the distance example
65-
// out[] holds the distances in cm
51+
// based on the distance example
52+
// out[] holds the distances in cm
6653
float out[] = {150, 140, 130, 120, 110, 100, 90, 80, 70, 60, 50, 40, 30, 20};
67-
// in[] holds the measured analogRead() values for that distance
54+
// in[] holds the measured analogRead() values for that distance
6855
float in[] = { 90, 97, 105, 113, 124, 134, 147, 164, 185, 218, 255, 317, 408, 506};
6956

7057
assertEqualFloat(150.000, multiMap<float>(80, in, out, 14), 0.001);

0 commit comments

Comments
 (0)