File tree 4 files changed +11
-10
lines changed
4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,7 @@ PS2KeyRaw keyboard;
69
69
void setup () {
70
70
keyboard.begin ( DATAPIN, IRQPIN );
71
71
Serial.begin ( 115200 );
72
- #if defined(ARDUINO_ARCH_AVR)
73
- Serial.println ( F ( " PS2 Raw Test of PS2 Keyboard codes" ) );
74
- #elif defined(ARDUINO_ARCH_SAM)
75
72
Serial.println ( " PS2 Raw Test of PS2 Keyboard codes" );
76
- #endif
77
73
}
78
74
79
75
void loop ()
Original file line number Diff line number Diff line change 1
1
name =PS2KeyRaw
2
- version =1.0.2
2
+ version =1.0.5
3
3
author =Paul Carpenter <paul@pcserviceselectronics.co.uk>
4
4
maintainer =Paul Carpenter <paul@pcserviceselectronics.co.uk>
5
5
sentence =PS2 keyboard control and raw data receiving
6
6
paragraph =Controls and decodes the communication from the keyboard for testing purposes.
7
7
category =Other
8
8
url =https://github.com/techpaul/PS2KeyRaw.git
9
- architectures =avr,sam
9
+ architectures =avr,sam
10
+ includes =PS2KeyRaw.h
Original file line number Diff line number Diff line change 1
- /* Version V1.0.4
1
+ /* Version V1.0.5
2
2
PS2KeyRaw.cpp - PS2KeyRaw library
3
3
Copyright (c) 2007 Free Software Foundation. All right reserved.
4
4
Written by Paul Carpenter, PC Services <sales@pcserviceselectronics.co.uk>
5
+ Update Jan-2020 Paul Carpenter, Improve conditionals for other platform support
5
6
6
7
Stripped down version of PS2Keyboard to get every key code byte from a PS2
7
8
Keyboard for testing purposes. Enables capture of all bytes see example.
@@ -110,7 +111,8 @@ void ps2interrupt( void )
110
111
head = val;
111
112
}
112
113
}
113
- // fall through to default
114
+ bitcount = 0 ;
115
+ break ;
114
116
default : // in case of weird error and end of byte reception re-sync
115
117
bitcount = 0 ;
116
118
}
Original file line number Diff line number Diff line change 1
- /* Version V1.0.2
1
+ /* Version V1.0.5
2
2
PS2KeyRaw.h - PS2KeyRaw library
3
3
Copyright (c) 2007 Free Software Foundation. All right reserved.
4
4
Written by Paul Carpenter, PC Services <sales@pcserviceselectronics.co.uk>
5
+ Update Jan-2020 Paul Carpenter, Improve conditionals for other platform support
5
6
6
7
Stripped down version of PS2Keyboard to get every key code byte from a PS2
7
8
Keyboard for testing purposes. Enables capture of all bytes see examples.
57
58
** Modified for easy interrupt pin assignment on method begin(datapin,irq_pin). Cuningan <cuninganreset@gmail.com> **
58
59
V1.0.1 Modified September 2014 Paul Carpenter for easier state machines and parity checks
59
60
V1.0.2 Modified January 2016 to improve interrupt assignment with new Arduino macros
61
+ V1.0.5 Modified January 2020 to match newer Library Manager and reduce warning errors
60
62
61
63
This library is free software; you can redistribute it and/or
62
64
modify it under the terms of the GNU Lesser General Public
79
81
80
82
/* *
81
83
* Purpose: Provides an easy access to PS2 keyboards
82
- * Author : Christian Weichel
84
+ * Based On : Christian Weichel
83
85
*/
84
86
class PS2KeyRaw {
85
87
public:
You can’t perform that action at this time.
0 commit comments