File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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//
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
1616const byte
Original file line number Diff line number Diff line change 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
1212const byte
Original file line number Diff line number Diff line change 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
1111const byte
Original file line number Diff line number Diff line change 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
1414const byte
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name=Mini_Button
22version =1.0.0
33author =Štěpán Škrob
44maintainer =Š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.
77category =Signal Input/Output
88url =https://github.com/solamyl/Mini_Button
99architectures =*
Original file line number Diff line number Diff line change 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
99void Button::begin ()
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments