Skip to content

Commit

Permalink
update library.json, license, minor edits (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart authored Dec 29, 2021
1 parent aaf5a70 commit d7733ce
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 29 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2011-2021 Rob Tillaart
Copyright (c) 2011-2022 Rob Tillaart

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,16 @@ See examples.
- test on ESP32
- nanos() on ESP32 ?
- implement printable interface (add unit)
- idea to give it a clock print layout
- seconds.toClock() -> DD 12:34:56
- milliSeconds.toClock(3) -> 12:23:45.123 (3) == 3 decimals..
- milliSeconds.toClock(1) -> 12:23:45.1
- microSeconds.toCLock() -> 12:23:45.123456 ???
- ?
- implement toClock()
- idea to give it a clock print layout
- seconds.toClock() -> DD 12:34:56
- milliSeconds.toClock(3) -> 12:23:45.123 (3) == 3 decimals..
- milliSeconds.toClock(1) -> 12:23:45.1
- microSeconds.toCLock() -> 12:23:45.123456 ???
- implement toSeconds()
- double milliSeconds.toSeconds() -> 45.123
- double microSeconds.toSeconds() -> 45.123456
- update documentation
- rounding effect, describe

3 changes: 0 additions & 3 deletions examples/microSeconds/microSeconds.ino
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
//
// FILE: microSeconds.ino
// AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// PURPOSE: demo
// DATE: 2020
// URL: https://github.com/RobTillaart/timing
//


#include "timing.h"
Expand Down
4 changes: 1 addition & 3 deletions examples/milliSeconds/milliSeconds.ino
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
//
// FILE: milliSeconds.ino
// AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// PURPOSE: demo
// DATE: 2020
// URL: https://github.com/RobTillaart/timing
//


#include "timing.h"
Expand Down Expand Up @@ -49,3 +46,4 @@ void loop()


// -- END OF FILE --

3 changes: 0 additions & 3 deletions examples/seconds/seconds.ino
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
//
// FILE: seconds.ino
// AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// PURPOSE: demo
// DATE: 2020
// URL: https://github.com/RobTillaart/timing
//


#include "timing.h"
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/timing"
},
"version": "0.2.2",
"version": "0.2.3",
"license": "MIT",
"frameworks": "arduino",
"platforms": "*",
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=timing
version=0.2.2
version=0.2.3
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library with wrapper classes for seconds millis micros.
Expand Down
7 changes: 4 additions & 3 deletions test/unit_test_001.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@

unittest_setup()
{
fprintf(stderr, "TIMING_LIB_VERSION: %s\n", (char *) TIMING_LIB_VERSION);
}


unittest_teardown()
{
}


unittest(test_constructor)
{
fprintf(stderr, "VERSION: %s\n", (char *) TIMING_LIB_VERSION);

microSeconds mic;
assertEqual(0, mic.getOffset());
mic.set(100);
Expand All @@ -67,9 +67,10 @@ unittest(test_constructor)
fprintf(stderr, "%d\n", mic.now());
fprintf(stderr, "%d\n", mil.now());
fprintf(stderr, "%d\n", sec.now());

}


unittest_main()


// --------
18 changes: 9 additions & 9 deletions timing.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
//
// FILE: timing.h
// AUTHOR: Rob Tillaart
// VERSION: 0.2.2
// VERSION: 0.2.3
// PURPOSE: Arduino library with wrapper classes for seconds millis micros
// URL: https://github.com/RobTillaart/timing
//
// HISTORY:
// 0.1.00 2011-01-04 initial version
// 0.1.01 2011-07-19 lib version
// 0.1.02 2015-03-02 move all to mymillis.h file so compiler can optimize
// 0.2.0 2020-07-07 renamed to timing.h
// 0.2.1 2021-01-09 added Arduino-CI + unit test
// 0.2.2 2021-05-27 added Arduino-lint
//
// 0.1.00 2011-01-04 initial version
// 0.1.01 2011-07-19 lib version
// 0.1.02 2015-03-02 move all to mymillis.h file so compiler can optimize
// 0.2.0 2020-07-07 renamed to timing.h
// 0.2.1 2021-01-09 added Arduino-CI + unit test
// 0.2.2 2021-05-27 added Arduino-lint
// 0.2.3 2021-12-29 update library.json, license, minor edits


#define TIMING_LIB_VERSION (F("0.2.2"))
#define TIMING_LIB_VERSION (F("0.2.3"))


class microSeconds
Expand Down

0 comments on commit d7733ce

Please sign in to comment.