Skip to content

Commit eaf4f2c

Browse files
committed
renaming library after fork
- renamed from `JC_Button` to `Mini_Button`
1 parent 81a1615 commit eaf4f2c

7 files changed

Lines changed: 35 additions & 34 deletions

File tree

examples/LongPress/LongPress.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// Arduino Button Library
2-
// https://github.com/JChristensen/JC_Button
3-
// Copyright (C) 2018 by Jack Christensen and licensed under
4-
// GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
1+
// Mini_Button Arduino library
2+
// https://github.com/solamyl/Mini_Button
3+
// Copyright (C) 2018 by Jack Christensen
4+
// licensed under GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
55
//
66
// Example sketch demonstrating short and long button presses.
77
//
@@ -10,7 +10,7 @@
1010
// blink rapidly. Once in rapid blink mode, another long press goes
1111
// back to on/off mode.
1212

13-
#include <JC_Button.h> // https://github.com/JChristensen/JC_Button
13+
#include <Mini_Button.h> // https://github.com/solamyl/Mini_Button
1414

1515
// pin assignments
1616
const byte

examples/SimpleOnOff/SimpleOnOff.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// Arduino Button Library
2-
// https://github.com/JChristensen/JC_Button
3-
// Copyright (C) 2018 by Jack Christensen and licensed under
4-
// GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
1+
// Mini_Button Arduino library
2+
// https://github.com/solamyl/Mini_Button
3+
// Copyright (C) 2018 by Jack Christensen
4+
// licensed under GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
55
//
66
// Example sketch to turn an LED on and off with a tactile button switch.
77
// Wire the switch from the Arduino pin to ground.
88

9-
#include <JC_Button.h> // https://github.com/JChristensen/JC_Button
9+
#include <Mini_Button.h> // https://github.com/solamyl/Mini_Button
1010

1111
// pin assignments
1212
const byte

examples/Toggle/Toggle.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// Arduino Button Library
2-
// https://github.com/JChristensen/JC_Button
3-
// Copyright (C) 2018 by Jack Christensen and licensed under
4-
// GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
1+
// Mini_Button Arduino library
2+
// https://github.com/solamyl/Mini_Button
3+
// Copyright (C) 2018 by Jack Christensen
4+
// licensed under GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
55
//
66
// Example sketch to demonstrate toggle buttons.
77

8-
#include <JC_Button.h> // https://github.com/JChristensen/JC_Button
8+
#include <Mini_Button.h> // https://github.com/solamyl/Mini_Button
99

1010
// pin assignments
1111
const byte

examples/UpDown/UpDown.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
// Arduino Button Library
2-
// https://github.com/JChristensen/JC_Button
3-
// Copyright (C) 2018 by Jack Christensen and licensed under
4-
// GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
1+
// Mini_Button Arduino library
2+
// https://github.com/solamyl/Mini_Button
3+
// Copyright (C) 2018 by Jack Christensen
4+
// licensed under GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
55
//
66
// Example sketch that uses both short and long button presses to adjust
77
// a number up and down, between two limits. Short presses increment
88
// or decrement by one, long presses repeat at a specified rate.
99
// Every time the number changes, it is written to the serial monitor.
1010

11-
#include <JC_Button.h> // https://github.com/JChristensen/JC_Button
11+
#include <Mini_Button.h> // https://github.com/solamyl/Mini_Button
1212

1313
// pin assignments
1414
const byte

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name=Mini_Button
22
version=1.0.0
33
author=Štěpán Škrob
44
maintainer=Štěpán Škrob <solamy@seznam.cz>
5-
sentence=Minimal button library with debouncing.
6-
paragraph=Mimimal Arduino button lib with a robust debouncing mechanism, small memory footprint and easy interface. Forked from JC_Button.
5+
sentence=Button debouncing library with minimal footprint.
6+
paragraph=Provides robust debouncing, low-memory usage and easy API. Forked from JC_Button.
77
category=Signal Input/Output
88
url=https://github.com/solamyl/Mini_Button
99
architectures=*
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// Arduino Button Library
2-
// https://github.com/JChristensen/JC_Button
3-
// Copyright (C) 2018 by Jack Christensen and licensed under
4-
// GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
1+
// Mini_Button Arduino library
2+
// https://github.com/solamyl/Mini_Button
3+
// Copyright (C) 2018 by Jack Christensen
4+
// licensed under GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
55

6-
#include "JC_Button.h"
6+
#include "Mini_Button.h"
77

88
// initialize a Button object
99
void Button::begin()

src/JC_Button.h renamed to src/Mini_Button.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// Arduino Button Library
2-
// https://github.com/JChristensen/JC_Button
3-
// Copyright (C) 2018 by Jack Christensen and licensed under
4-
// GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
1+
// Mini_Button Arduino library
2+
// https://github.com/solamyl/Mini_Button
3+
// Copyright (C) 2018 by Jack Christensen
4+
// licensed under GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
55

6-
#ifndef JC_BUTTON_H_INCLUDED
7-
#define JC_BUTTON_H_INCLUDED
6+
#ifndef MINI_BUTTON_H_INCLUDED
7+
#define MINI_BUTTON_H_INCLUDED
88

99
#include <Arduino.h>
1010

@@ -109,4 +109,5 @@ class ToggleButton : public Button
109109
bool m_toggleState;
110110
bool m_changed = false;
111111
};
112-
#endif
112+
113+
#endif // MINI_BUTTON_H_INCLUDED

0 commit comments

Comments
 (0)