-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure for latest Arduino Library Manager versions
Tidy up conditionals for adding platforms Simplify examples
- Loading branch information
Showing
4 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
name=PS2KeyRaw | ||
version=1.0.2 | ||
version=1.0.5 | ||
author=Paul Carpenter <[email protected]> | ||
maintainer=Paul Carpenter <[email protected]> | ||
sentence=PS2 keyboard control and raw data receiving | ||
paragraph=Controls and decodes the communication from the keyboard for testing purposes. | ||
category=Other | ||
url=https://github.com/techpaul/PS2KeyRaw.git | ||
architectures=avr,sam | ||
architectures=avr,sam | ||
includes=PS2KeyRaw.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* Version V1.0.4 | ||
/* Version V1.0.5 | ||
PS2KeyRaw.cpp - PS2KeyRaw library | ||
Copyright (c) 2007 Free Software Foundation. All right reserved. | ||
Written by Paul Carpenter, PC Services <[email protected]> | ||
Update Jan-2020 Paul Carpenter, Improve conditionals for other platform support | ||
Stripped down version of PS2Keyboard to get every key code byte from a PS2 | ||
Keyboard for testing purposes. Enables capture of all bytes see example. | ||
|
@@ -110,7 +111,8 @@ void ps2interrupt( void ) | |
head = val; | ||
} | ||
} | ||
// fall through to default | ||
bitcount = 0; | ||
break; | ||
default: // in case of weird error and end of byte reception re-sync | ||
bitcount = 0; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/* Version V1.0.2 | ||
/* Version V1.0.5 | ||
PS2KeyRaw.h - PS2KeyRaw library | ||
Copyright (c) 2007 Free Software Foundation. All right reserved. | ||
Written by Paul Carpenter, PC Services <[email protected]> | ||
Update Jan-2020 Paul Carpenter, Improve conditionals for other platform support | ||
Stripped down version of PS2Keyboard to get every key code byte from a PS2 | ||
Keyboard for testing purposes. Enables capture of all bytes see examples. | ||
|
@@ -57,6 +58,7 @@ | |
** Modified for easy interrupt pin assignment on method begin(datapin,irq_pin). Cuningan <[email protected]> ** | ||
V1.0.1 Modified September 2014 Paul Carpenter for easier state machines and parity checks | ||
V1.0.2 Modified January 2016 to improve interrupt assignment with new Arduino macros | ||
V1.0.5 Modified January 2020 to match newer Library Manager and reduce warning errors | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
|
@@ -79,7 +81,7 @@ | |
|
||
/** | ||
* Purpose: Provides an easy access to PS2 keyboards | ||
* Author: Christian Weichel | ||
* Based On: Christian Weichel | ||
*/ | ||
class PS2KeyRaw { | ||
public: | ||
|