0.3.3 CountDown

This commit is contained in:
Rob Tillaart 2024-04-11 17:23:54 +02:00
parent 212c71fc4b
commit d54b67b9dc
17 changed files with 34 additions and 42 deletions

View File

@ -1,4 +1,4 @@
# These are supported funding model platforms # These are supported funding model platforms
github: RobTillaart github: RobTillaart
custom: "https://www.paypal.me/robtillaart"

View File

@ -1,13 +1,13 @@
name: Arduino-lint name: Arduino-lint
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 5
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: arduino/arduino-lint-action@v1 - uses: arduino/arduino-lint-action@v1
with: with:
library-manager: update library-manager: update
compliance: strict compliance: strict

View File

@ -1,4 +1,3 @@
---
name: Arduino CI name: Arduino CI
on: [push, pull_request] on: [push, pull_request]
@ -6,12 +5,14 @@ on: [push, pull_request]
jobs: jobs:
runTest: runTest:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 20
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@v1
with: with:
ruby-version: 2.6 ruby-version: 2.6
- run: | - run: |
sudo sysctl vm.mmap_rnd_bits=28
gem install arduino_ci gem install arduino_ci
arduino_ci.rb arduino_ci.rb

View File

@ -9,10 +9,10 @@ on:
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 5
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: json-syntax-check - name: json-syntax-check
uses: limitusus/json-syntax-check@v1 uses: limitusus/json-syntax-check@v2
with: with:
pattern: "\\.json$" pattern: "\\.json$"

View File

@ -6,10 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/). and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.3.3] - 2024-04-11
- update GitHub actions
- minor edits
## [0.3.2] - 2023-10-18 ## [0.3.2] - 2023-10-18
- update readme.md (badges) - update readme.md (badges)
## [0.3.1] - 2023-03-14 ## [0.3.1] - 2023-03-14
- fix #14 add **restart()** function. - fix #14 add **restart()** function.
- add demo for restart **countdown_restart.ino** - add demo for restart **countdown_restart.ino**

View File

@ -1,7 +1,7 @@
// //
// FILE: CountDown.cpp // FILE: CountDown.cpp
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.3.2 // VERSION: 0.3.3
// PURPOSE: CountDown library for Arduino // PURPOSE: CountDown library for Arduino
// URL: https://github.com/RobTillaart/CountDown // URL: https://github.com/RobTillaart/CountDown
@ -161,5 +161,5 @@ void CountDown::calcRemaining()
} }
// -- END OF FILE -- // -- END OF FILE --

View File

@ -2,14 +2,14 @@
// //
// FILE: CountDown.h // FILE: CountDown.h
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.3.2 // VERSION: 0.3.3
// PURPOSE: CountDown library for Arduino // PURPOSE: CountDown library for Arduino
// URL: https://github.com/RobTillaart/CountDown // URL: https://github.com/RobTillaart/CountDown
#include "Arduino.h" #include "Arduino.h"
#define COUNTDOWN_LIB_VERSION (F("0.3.2")) #define COUNTDOWN_LIB_VERSION (F("0.3.3"))
class CountDown class CountDown

View File

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2015-2023 Rob Tillaart Copyright (c) 2015-2024 Rob Tillaart
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -4,7 +4,6 @@
// PURPOSE: demo // PURPOSE: demo
// URL: http://forum.arduino.cc/index.php?topic=356253 // URL: http://forum.arduino.cc/index.php?topic=356253
// https://github.com/RobTillaart/CountDown // https://github.com/RobTillaart/CountDown
//
#include "CountDown.h" #include "CountDown.h"
@ -45,4 +44,4 @@ void loop()
} }
// -- END OF FILE -- // -- END OF FILE --

View File

@ -1,9 +1,7 @@
// //
// FILE: countdown_demo.ino // FILE: countdown_demo.ino
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.1.1
// PURPOSE: demo // PURPOSE: demo
// DATE: 2015-10-28
// URL: http://forum.arduino.cc/index.php?topic=356253 // URL: http://forum.arduino.cc/index.php?topic=356253
// https://github.com/RobTillaart/CountDown // https://github.com/RobTillaart/CountDown
// //
@ -35,7 +33,7 @@ void setup()
// Serial.println(CD.remaining() ); // Serial.println(CD.remaining() );
// delay(100); // delay(100);
} }
Serial.println(millis() - start); // SHOULD PRINT 180000 Serial.println(millis() - start); // SHOULD PRINT 180000
Serial.println(CD.remaining()); Serial.println(CD.remaining());
Serial.println("done..."); Serial.println("done...");
@ -47,5 +45,5 @@ void loop()
} }
// -- END OF FILE -- // -- END OF FILE --

View File

@ -1,9 +1,7 @@
// //
// FILE: countdown_demo2.ino // FILE: countdown_demo2.ino
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// PURPOSE: demo // PURPOSE: demo
// DATE: 2015-10-28
// URL: http://forum.arduino.cc/index.php?topic=356253 // URL: http://forum.arduino.cc/index.php?topic=356253
// https://github.com/RobTillaart/CountDown // https://github.com/RobTillaart/CountDown
// //
@ -63,5 +61,5 @@ void loop()
} }
// -- END OF FILE -- // -- END OF FILE --

View File

@ -41,4 +41,4 @@ void loop()
} }
// -- END OF FILE -- // -- END OF FILE --

View File

@ -1,9 +1,7 @@
// //
// FILE: countdown_setResolution.ino // FILE: countdown_setResolution.ino
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// PURPOSE: demo // PURPOSE: demo
// DATE: 2021-05-26
// URL: http://forum.arduino.cc/index.php?topic=356253 // URL: http://forum.arduino.cc/index.php?topic=356253
// https://github.com/RobTillaart/CountDown // https://github.com/RobTillaart/CountDown
// //
@ -22,7 +20,7 @@ void setup()
Serial.println(COUNTDOWN_LIB_VERSION); Serial.println(COUNTDOWN_LIB_VERSION);
CD.setResolution(CountDown::MINUTES); CD.setResolution(CountDown::MINUTES);
// countdown 1 minutes // countdown 1 minutes
CD.start(1); CD.start(1);
} }
@ -37,9 +35,9 @@ void loop()
} }
Serial.print(' '); Serial.print(' ');
Serial.print(CD.remaining()); Serial.print(CD.remaining());
delay(5000); // every 5 seconds delay(5000); // every 5 seconds
} }
// -- END OF FILE -- // -- END OF FILE --

View File

@ -1,12 +1,9 @@
// //
// FILE: demo_DHMS.ino // FILE: demo_DHMS.ino
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// PURPOSE: demo // PURPOSE: demo
// DATE: 2017-07-16
// URL: http://forum.arduino.cc/index.php?topic=356253 // URL: http://forum.arduino.cc/index.php?topic=356253
// https://github.com/RobTillaart/CountDown // https://github.com/RobTillaart/CountDown
//
#include "CountDown.h" #include "CountDown.h"
@ -21,7 +18,7 @@ void setup()
Serial.print("COUNTDOWN_LIB_VERSION: "); Serial.print("COUNTDOWN_LIB_VERSION: ");
Serial.println(COUNTDOWN_LIB_VERSION); Serial.println(COUNTDOWN_LIB_VERSION);
// countdown 1 minute // countdown 1 minute
CD.start(0, 0, 1, 0); CD.start(0, 0, 1, 0);
} }
@ -40,5 +37,5 @@ void loop()
} }
// -- END OF FILE -- // -- END OF FILE --

View File

@ -1,12 +1,9 @@
// //
// FILE: demo_continue.ino // FILE: demo_continue.ino
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// PURPOSE: demo // PURPOSE: demo
// DATE: 2017-07-16
// URL: http://forum.arduino.cc/index.php?topic=356253 // URL: http://forum.arduino.cc/index.php?topic=356253
// https://github.com/RobTillaart/CountDown // https://github.com/RobTillaart/CountDown
//
#include "CountDown.h" #include "CountDown.h"
@ -51,5 +48,5 @@ void loop()
} }
// -- END OF FILE -- // -- END OF FILE --

View File

@ -15,7 +15,7 @@
"type": "git", "type": "git",
"url": "https://github.com/RobTillaart/CountDown.git" "url": "https://github.com/RobTillaart/CountDown.git"
}, },
"version": "0.3.2", "version": "0.3.3",
"license": "MIT", "license": "MIT",
"frameworks": "*", "frameworks": "*",
"platforms": "*", "platforms": "*",

View File

@ -1,5 +1,5 @@
name=CountDown name=CountDown
version=0.3.2 version=0.3.3
author=Rob Tillaart <rob.tillaart@gmail.com> author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com> maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library to implement a CountDown clock in SW. sentence=Arduino library to implement a CountDown clock in SW.