Skip to content

Commit a67908a

Browse files
committed
0.1.4 weight
1 parent b6512a6 commit a67908a

File tree

6 files changed

+72
-21
lines changed

6 files changed

+72
-21
lines changed

libraries/weight/.arduino-ci.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
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
18+
# selected only those that work
319
platforms:
420
- uno
5-
- due
6-
- zero
7-
- leonardo
21+
# - due
22+
# - zero
23+
# - leonardo
824
- m4
925
- esp32
1026
- esp8266
11-
- mega2560
27+
# - mega2560
28+
- rpipico
1229

libraries/weight/CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Change Log tinySHT2x
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.4] - 2022-11-26
10+
- Add RP2040 support to build-CI.
11+
- Add CHANGELOG.md
12+
- update readme.md
13+
14+
15+
## [0.1.3] - 2021-12-29
16+
- update library.json
17+
- update readme.md
18+
- update license
19+
- minor edits
20+
21+
## [0.1.2] - 2021-01-09
22+
- fix URL
23+
24+
## [0.1.1] - 2021-01-09
25+
- add Arduino-CI + unit test
26+
27+
## [0.1.0] - 2020-06-16
28+
- initial version
29+

libraries/weight/README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,31 @@ Functions are straightforward.
5555
See examples
5656

5757

58-
## Future (TBD)
58+
## Future
5959

60+
#### must
6061
- improve documentation
62+
63+
#### should
64+
- a class like the temperature convertor and pressure convertor
65+
- internally grams?
66+
- getters setters
67+
68+
#### could
69+
- create data types of stone lbs kilo etc.?
70+
71+
#### won't (unless)
72+
- large masses - sun planets ? (see relativity library)
73+
- gravity constants of planets REL or ABS eg REL_GRAVITY_EARTH 1.0
6174
- mass of all elements
6275
- an array of floats
6376
- a compressed format with access function (1 byte/ element)
6477
- constants e.g. MASS_OXYGEN
78+
- separate periodicTable.h file ?
6579
- molarity functions
6680
- mass of common substances.
67-
- large masses - sun planets ?
68-
- gravity constants of planets REL or ABS eg REL_GRAVITY_EARTH 1.0
6981
- teaspoon
70-
- although that is a volume unit.
82+
- that is a volume unit.
7183
- volume conversion too?
72-
- create data types of stone lbs kilo etc.?
7384

7485

libraries/weight/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/weight"
1717
},
18-
"version": "0.1.3",
18+
"version": "0.1.4",
1919
"license": "MIT",
2020
"frameworks": "arduino",
2121
"platforms": "*",

libraries/weight/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=weight
2-
version=0.1.3
2+
version=0.1.4
33
author=Rob Tillaart <[email protected]>
44
maintainer=Rob Tillaart <[email protected]>
55
sentence=Library of weight conversion functions

libraries/weight/weight.h

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,15 @@
22
//
33
// FILE: weight.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.1.3
5+
// VERSION: 0.1.4
66
// PURPOSE: Collection weight conversion functions
77
// URL: https://github.com/RobTillaart/weight
8-
//
9-
// HISTORY:
10-
// 0.1.0 2020-06-16 initial version
11-
// 0.1.1 2021-01-09 add Arduino-CI + unit test
12-
// 0.1.2 2021-01-09 fix URL
13-
// 0.1.3 2021-12-29 update library.json, license, minor edits
148

159

1610
#include "Arduino.h"
1711

1812

19-
#define WEIGHT_LIB_VERSION (F("0.1.3"))
13+
#define WEIGHT_LIB_VERSION (F("0.1.4"))
2014

2115

2216
float lbs2kilo(float lbs) { return lbs * 0.45359237; };
@@ -38,7 +32,7 @@ float stone2kilo(float stone) { return stone * 6.35029318; };
3832
float kilo2stone(float kilo) { return kilo * 0.157473044; };
3933

4034

41-
// returns kilo
35+
// returns kilo
4236
float US2metric(float stone, float lbs, float ounce)
4337
{
4438
float kilo = stone * 6.35029318;
@@ -48,7 +42,7 @@ float US2metric(float stone, float lbs, float ounce)
4842
};
4943

5044

51-
// returns lbs;
45+
// returns lbs;
5246
float metric2US(float kilo, float &stone, float &lbs, float &ounce)
5347
{
5448
float val = kilo * 2.20462262;

0 commit comments

Comments
 (0)