Skip to content

Commit

Permalink
Version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ZulNs committed Feb 21, 2018
1 parent 34c81a7 commit ccccdb9
Show file tree
Hide file tree
Showing 10 changed files with 395 additions and 340 deletions.
42 changes: 21 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
MIT License

Copyright (c) 2017 ZulNs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
MIT License
Copyright (c) 2017 ZulNs
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
Expand Up @@ -355,4 +355,4 @@ byte getAlphabet(byte chr, byte ctr) {
}
return alpha;
}


Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ void loop() {
lcd.setCursor( 0, 1 );
lcd.print( F( " " ) );
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ void loop() {
case KEY_UP:
Serial.println( F( " up" ) );
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -366,4 +366,4 @@ byte getAlphabet( byte chr, byte ctr ) {
}
return alpha;
}


102 changes: 52 additions & 50 deletions keywords.txt
Original file line number Diff line number Diff line change
@@ -1,50 +1,52 @@
#######################################
# Syntax Coloring Map Keypad
#######################################

#######################################
# Datatypes (KEYWORD1)
#######################################
MultitapKeypad KEYWORD1
Key KEYWORD1

#######################################
# Methods and Functions (KEYWORD2)
#######################################
getKey KEYWORD2
resetTapCounter KEYWORD2
attachFunction KEYWORD2
code KEYWORD2
character KEYWORD2
lastCode KEYWORD2
beforeLastCode KEYWORD2
tapCounter KEYWORD2
state KEYWORD2

#######################################
# Constants (LITERAL1)
#######################################
KEY_CODE LITERAL1
NO_KEY LITERAL1
KEY_1 LITERAL1
KEY_2 LITERAL1
KEY_3 LITERAL1
KEY_A LITERAL1
KEY_4 LITERAL1
KEY_5 LITERAL1
KEY_6 LITERAL1
KEY_B LITERAL1
KEY_7 LITERAL1
KEY_8 LITERAL1
KEY_9 LITERAL1
KEY_C LITERAL1
KEY_ASTERISK LITERAL1
KEY_0 LITERAL1
KEY_NUMBER_SIGN LITERAL1
KEY_D LITERAL1
KEY_STATE LITERAL1
KEY_DOWN LITERAL1
MULTI_TAP LITERAL1
LONG_TAP LITERAL1
MULTI_KEY_DOWN LITERAL1
KEY_UP LITERAL1
#######################################
# Syntax Coloring Map Keypad
#######################################

#######################################
# Datatypes (KEYWORD1)
#######################################
MultitapKeypad KEYWORD1
Key KEYWORD1

#######################################
# Methods and Functions (KEYWORD2)
#######################################
getKey KEYWORD2
resetTapCounter KEYWORD2
attachFunction KEYWORD2
code KEYWORD2
character KEYWORD2
lastCode KEYWORD2
beforeLastCode KEYWORD2
tapCounter KEYWORD2
state KEYWORD2
isCanceled KEYWORD2

#######################################
# Constants (LITERAL1)
#######################################
KEY_CODE LITERAL1
NO_KEY LITERAL1
KEY_1 LITERAL1
KEY_2 LITERAL1
KEY_3 LITERAL1
KEY_A LITERAL1
KEY_4 LITERAL1
KEY_5 LITERAL1
KEY_6 LITERAL1
KEY_B LITERAL1
KEY_7 LITERAL1
KEY_8 LITERAL1
KEY_9 LITERAL1
KEY_C LITERAL1
KEY_ASTERISK LITERAL1
KEY_0 LITERAL1
KEY_NUMBER_SIGN LITERAL1
KEY_D LITERAL1
KEY_STATE LITERAL1
KEY_DOWN LITERAL1
MULTI_TAP LITERAL1
LONG_TAP LITERAL1
MULTI_KEY_DOWN LITERAL1
KEY_UP LITERAL1
CANCELED LITERAL1
28 changes: 14 additions & 14 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "MultitapKeypad",
"keywords": "Keypad, multi-tap, long-tap",
"description": "A library (driver) for matrix 4x3 or 4x4 keypad supports multi-tap and long-tap.",
"repository":
{
"type": "git",
"url": "https://github.com/ZulNs/MultitapKeypad.git"
},
"frameworks": "arduino",
"platforms":
[
"atmelavr"
]
{
"name": "MultitapKeypad",
"keywords": "Keypad, multi-tap, long-tap",
"description": "A library (driver) for matrix 4x3 or 4x4 keypad supports multi-tap and long-tap.",
"repository":
{
"type": "git",
"url": "https://github.com/ZulNs/MultitapKeypad.git"
},
"frameworks": "arduino",
"platforms":
[
"atmelavr"
]
}
18 changes: 9 additions & 9 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name=MultitapKeypad
version=1.0.2
author=ZulNs
maintainer=ZulNs <zul.nasibu@gmail.com>
sentence=A library (driver) for matrix 4x3 or 4x4 keypad supports multi-tap and long-tap.
paragraph= The library allows to interface with matrix 4x3 phone's keypad as well as matrix 4x4 keypad, supports multi-tap/long-tap states to simplify implement of customizable access to all characters (upper and lower cases), numbers and symbols.
category=Sensors
url=https://github.com/ZulNs/MultitapKeypad
architectures=avr
name=MultitapKeypad
version=1.1.0
author=ZulNs
maintainer=ZulNs <zul.nasibu@gmail.com>
sentence=A library (driver) for matrix 4x3 or 4x4 keypad supports multi-tap and long-tap.
paragraph= The library allows to interface with matrix 4x3 phone's keypad as well as matrix 4x4 keypad, supports multi-tap/long-tap states to simplify implement of customizable access to all characters (upper and lower cases), numbers and symbols.
category=Sensors
url=https://github.com/ZulNs/MultitapKeypad
architectures=avr
Loading

0 comments on commit ccccdb9

Please sign in to comment.