Skip to content

Commit

Permalink
Configure for latest Arduino Library Manager versions
Browse files Browse the repository at this point in the history
Tidy up conditionals for adding platforms
Simplify examples
  • Loading branch information
techpaul committed Jan 23, 2020
1 parent d4fec79 commit d60e585
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
4 changes: 0 additions & 4 deletions examples/SimpleTest/SimpleTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ PS2KeyRaw keyboard;
void setup() {
keyboard.begin( DATAPIN, IRQPIN );
Serial.begin( 115200 );
#if defined(ARDUINO_ARCH_AVR)
Serial.println( F( "PS2 Raw Test of PS2 Keyboard codes" ) );
#elif defined(ARDUINO_ARCH_SAM)
Serial.println( "PS2 Raw Test of PS2 Keyboard codes" );
#endif
}

void loop()
Expand Down
5 changes: 3 additions & 2 deletions library.properties
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 <paul@pcserviceselectronics.co.uk>
maintainer=Paul Carpenter <paul@pcserviceselectronics.co.uk>
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
6 changes: 4 additions & 2 deletions src/PS2KeyRaw.cpp
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 <sales@pcserviceselectronics.co.uk>
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.
Expand Down Expand Up @@ -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;
}
Expand Down
6 changes: 4 additions & 2 deletions src/PS2KeyRaw.h
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 <sales@pcserviceselectronics.co.uk>
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.
Expand Down Expand Up @@ -57,6 +58,7 @@
** Modified for easy interrupt pin assignment on method begin(datapin,irq_pin). Cuningan <cuninganreset@gmail.com> **
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
Expand All @@ -79,7 +81,7 @@

/**
* Purpose: Provides an easy access to PS2 keyboards
* Author: Christian Weichel
* Based On: Christian Weichel
*/
class PS2KeyRaw {
public:
Expand Down

0 comments on commit d60e585

Please sign in to comment.