Skip to content

Commit

Permalink
Develop (#6)
Browse files Browse the repository at this point in the history
* add changelog.md
  • Loading branch information
RobTillaart authored Nov 7, 2022
1 parent 4e43a88 commit ac19bc4
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 28 deletions.
21 changes: 20 additions & 1 deletion .arduino-ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
platforms:
rpipico:
board: rp2040:rp2040:rpipico
package: rp2040:rp2040
gcc:
features:
defines:
- ARDUINO_ARCH_RP2040
warnings:
flags:

packages:
rp2040:rp2040:
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json

compile:
# Choosing to run compilation tests on 2 different Arduino platforms
platforms:
Expand All @@ -8,4 +23,8 @@ compile:
- m4
- esp32
# - esp8266
# - mega2560
# - mega2560
- rpipico

libraries:
- "printHelpers"
69 changes: 69 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Change Log fraction

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).


## [0.1.14] - 2022-11-07
- add changelog.md
- add rp2040 to build-CI
- update readme.md


## [0.1.13] - 2021-12-18
- update library.json
- update license
- minor edits

## [0.1.12] - 2021-11-01
- update Arduino-CI
- add badges
- refactor

## [0.1.11] - 2020-12-23
- add Arduino-CI + unit tests

## [0.1.10] - 2020-06-10
- fix library.json

----

Long time ago ....

## [0.1.9]
- refactor

## [0.1.8]
- refactor made constructors explicit
- fix issue #33 double --> float

## [0.1.07]
- major refactoring by Chris-A

## [0.1.06]
- added proper(), mediant(), angle()

## [0.1.05]
- tested negative Fractions math
- added constructors,
- minor refactoring

## [0.1.04]
- stabilizing code
- add simplify() for some code paths.

## [0.1.03]
- add toDouble()
- tested several fractionize() codes
- bug fixes.

## [0.1.02]
- faster fractionize code

## [0.1.01]
- some fixes

## [0.1.00]
- initial version
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,16 @@ The library is reasonably tested, and if problems arise please let me know.

## Future

#### must
- improve documentation
- extend unit tests
- experiment with bigger nominator/denominator using all of 32767 possibilities ?
- test test test ...

#### should
- investigate divide by zero errors
- investigate better fractionize() - depends on nom/denom size
- test test test ...

#### could
- extend unit tests
- experiment with bigger nominator/denominator using all of 32767 possibilities ?
- add famous constants as Fraction e.g FRAC_PI = (355, 113) ??
-

21 changes: 2 additions & 19 deletions fraction.cpp
Original file line number Diff line number Diff line change
@@ -1,28 +1,11 @@
//
// FILE: fraction.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.1.13
// VERSION: 0.1.14
// PURPOSE: Arduino library to implement a Fraction datatype
// URL: https://github.com/RobTillaart/Fraction
//
//
// HISTORY
// 0.1.13 2021-12-18 update library.json, license, minot edits
// 0.1.12 2021-11-01 update Arduino-CI, badges,
// refactor
// 0.1.11 2020-12-23 arduino-CI + unit tests
// 0.1.10 2020-06-10 fix library.json
// 0.1.9 refactor
// 0.1.8 refactor made constructors explicit; fix issue #33 double --> float
// 0.1.07 major refactoring by Chris-A
// 0.1.06 added proper(), mediant(), angle();
// 0.1.05 tested negative Fractions math, added constructors,
// minor refactoring,
// 0.1.04 stabilizing code, add simplify() for some code paths.
// 0.1.03 added toDouble(), tested several fractionize() codes, bug fixes.
// 0.1.02 faster fractionize code
// 0.1.01 some fixes
// 0.1.00 initial version
// HISTORY: see changelog.md


#include "fraction.h"
Expand Down
4 changes: 2 additions & 2 deletions fraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
//
// FILE: fraction.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.13
// VERSION: 0.1.14
// PURPOSE: Arduino library to implement a Fraction datatype
// URL: https://github.com/RobTillaart/Fraction
//


#include "Arduino.h"

#define FRACTION_LIB_VERSION (F("0.1.13"))
#define FRACTION_LIB_VERSION (F("0.1.14"))


class Fraction: public Printable
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/Fraction.git"
},
"version": "0.1.13",
"version": "0.1.14",
"frameworks": "arduino",
"platforms": "*",
"headers": "fraction.h"
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Fraction
version=0.1.13
version=0.1.14
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library to implement a Fraction datatype
Expand Down

0 comments on commit ac19bc4

Please sign in to comment.