Skip to content

Commit

Permalink
initial arduino library index release
Browse files Browse the repository at this point in the history
  • Loading branch information
s-light committed Feb 7, 2020
1 parent 363fca8 commit 449e4a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ https://opensource.org/licenses/mit-license.php
// ------------------------------------------
// slight_ButtonInput things

boolean mybutton_get_input(slight_ButtonInput *instance) {
bool mybutton_get_input(slight_ButtonInput *instance) {
// read input + invert: button closes to GND.
return !digitalRead((*instance).pin);
}
Expand All @@ -76,6 +76,7 @@ void mybutton_event(slight_ButtonInput *instance) {
// using default values:
slight_ButtonInput mybutton1(1, A3, mybutton_get_input, mybutton_event);


// ------------------------------------------
// setup
// ------------------------------------------
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=slight_ButtonInput
version=0.3.0
version=1.0.0
author=Stefan Krüger (s-light) <[email protected]>
maintainer=Stefan Krüger <[email protected]>
sentence=Event based button input.
Expand Down

0 comments on commit 449e4a5

Please sign in to comment.