Skip to content

Commit 4809b2b

Browse files
committed
Upgraded to 1.2.9 Version
- Updated version in the library spec files - Added Albert's name missing in library spec - Compilance with Library Standard included `Switch.h` file - Updated Date ranges
1 parent 4778377 commit 4809b2b

File tree

7 files changed

+58
-8
lines changed

7 files changed

+58
-8
lines changed

LICENSE.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ the "copyright" line and a pointer to where the full notice is found.
634634
Switch - Arduino switch and button library with Short/Long Press,
635635
Double Click and Beep.
636636
Copyright (C) 2012-2024 Albert van Dalen <http://www.avdweb.nl>
637-
Copyright (C) 2024 Abhijit Bose (aka. Boseji)
637+
Copyright (C) 2024-2026 Abhijit Bose (aka. Boseji)
638638

639639
This program is free software: you can redistribute it and/or modify
640640
it under the terms of the GNU General Public License as published by
@@ -655,7 +655,7 @@ Also add information on how to contact you by electronic and paper mail.
655655
notice like this when it starts in an interactive mode:
656656

657657
Switch Copyright (C) 2012-2024 Albert van Dalen and
658-
Copyright (C) 2024 Abhijit Bose (aka. Boseji)
658+
Copyright (C) 2024-2026 Abhijit Bose (aka. Boseji)
659659
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
660660
This is free software, and you are welcome to redistribute it
661661
under certain conditions; type `show c' for details.

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,12 @@ Please perform formatting before committing the code.
331331
clang-format -i src/*.* examples/**/*.ino
332332
```
333333

334+
For better compatibility use the [`arduino-lint`](https://github.com/arduino/arduino-lint) program:
335+
336+
```sh
337+
arduino-lint --library-manager update --compliance strict
338+
```
339+
334340
## Credits
335341

336342
Thanks to the contributors for making this library great
@@ -356,7 +362,7 @@ Thanks to the contributors for making this library great
356362

357363
Copyright (C) 2012-2024 Albert van Dalen <http://www.avdweb.nl>
358364

359-
Copyright (C) 2024 Abhijit Bose (aka. Boseji) :contributor:
365+
Copyright (C) 2024-2026 Abhijit Bose (aka. Boseji) :contributor:
360366

361367
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
362368

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Switch",
3-
"version": "1.2.8",
3+
"version": "1.2.9",
44
"description": "Arduino library for deglitching and debouncing switches and buttons.",
55
"keywords": "Button, Debounce, input, glitch",
66
"authors": [

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name=Switch
2-
version=1.2.8
2+
version=1.2.9
33
author=Albert van Dalen <http://www.avdweb.nl>
44
license=GPL-3.0-or-later
5-
maintainer=Abhijit Bose (aka. Boseji) <boseji.com>
5+
maintainer=Abhijit Bose (aka. Boseji) and Albert van Dalen <http://www.avdweb.nl>
66
sentence=Arduino library for deglitching and debouncing switches and buttons.
77
paragraph=Supports detecting longPress, doubleClick, and singleClick. Supports defining callback functions.
88
category=Signal Input/Output

src/Switch.h

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* Switch.h
3+
*
4+
* Switch - Arduino switch and button library with Short/Long Press,
5+
* Double Click and Beep.
6+
* ===========================================================
7+
*
8+
* Sources
9+
* -------
10+
* https://github.com/avandalen/avdweb_Switch
11+
*
12+
* Website
13+
* -------
14+
* http://www.avdweb.nl/arduino/hardware-interfacing/simple-switch-debouncer.html
15+
*
16+
* License
17+
* --------
18+
* SPDX: GPL-3.0-or-later
19+
*
20+
* Switch - Arduino switch and button library with Short/Long Press,
21+
* Double Click and Beep.
22+
* Copyright (C) 2012-2024 Albert van Dalen <http://www.avdweb.nl>
23+
* Copyright (C) 2024-2026 Abhijit Bose (aka. Boseji) :contributor:
24+
*
25+
* This program is free software: you can redistribute it and/or modify
26+
* it under the terms of the GNU General Public License as published by
27+
* the Free Software Foundation, either version 3 of the License, or
28+
* (at your option) any later version.
29+
*
30+
* This program is distributed in the hope that it will be useful,
31+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
32+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33+
* GNU General Public License for more details.
34+
*
35+
* You should have received a copy of the GNU General Public License
36+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
37+
*/
38+
39+
#ifndef _SWITCH_H
40+
#define _SWITCH_H
41+
42+
#include "avdweb_Switch.h"
43+
44+
#endif

src/avdweb_Switch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* Switch - Arduino switch and button library with Short/Long Press,
2121
* Double Click and Beep.
2222
* Copyright (C) 2012-2024 Albert van Dalen <http://www.avdweb.nl>
23-
* Copyright (C) 2024 Abhijit Bose (aka. Boseji) :contributor:
23+
* Copyright (C) 2024-2026 Abhijit Bose (aka. Boseji) :contributor:
2424
*
2525
* This program is free software: you can redistribute it and/or modify
2626
* it under the terms of the GNU General Public License as published by

src/avdweb_Switch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* Switch - Arduino switch and button library with Short/Long Press,
2121
* Double Click and Beep.
2222
* Copyright (C) 2012-2024 Albert van Dalen <http://www.avdweb.nl>
23-
* Copyright (C) 2024 Abhijit Bose (aka. Boseji) :contributor:
23+
* Copyright (C) 2024-2026 Abhijit Bose (aka. Boseji) :contributor:
2424
*
2525
* This program is free software: you can redistribute it and/or modify
2626
* it under the terms of the GNU General Public License as published by

0 commit comments

Comments
 (0)