You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
##Arduino PS2 keyboard interface light footprint all bytes from keyboard
2
+
##Arduino PS2 keyboard interface light footprint all bytes from keyboard
3
3
4
4
First Public Release Version V1.0.2
5
5
6
6
Smaller footprint than any others found
7
7
8
8
For other versions that convert the up to 8 byte keycode sequences to a single integer for all keyboard types or allow you to get the full UTF-8 configurable for any LATIN keyboard with extra functions keys as simple codes see associated reporitories for PS2KeyAdvanced and PS2KeyMap libraries. Yes these libraries even provide codes for multimedia keys and Function keys F1 to F24 (yes that is F24).
9
9
10
-
###Platforms
10
+
###Platforms
11
11
12
12
- Arduino AVR - tested on Uno and Mega 2560
13
13
- Arduino SAM - tested on DUE
14
14
15
-
###Test Environment
15
+
###Test Environment
16
16
- All platforms versions of test R3 Hardware
17
17
- Arduino V1.6.7
18
18
- DUE Board Manager package V1.6.6
19
19
20
-
##Important Hardware Notes
21
-
1 Make sure you have data and clock wires connected correctly. Clock wire MUST be connected to an interrupt pin.
20
+
##Important Hardware Notes
21
+
1 Make sure you have data and clock wires connected correctly. Clock wire MUST be connected to an interrupt pin.
22
22
- Do NOT use Pin 13 for either clock or data wires
23
23
- PS2KeyRaw requires both pins specified for begin() as in keyboard.begin( data_pin, irq_pin );
24
24
- Valid irq pins:
@@ -32,9 +32,9 @@ For other versions that convert the up to 8 byte keycode sequences to a single i
32
32
- Teensy++ 1.0: 0, 1, 2, 3, 18, 19, 36, 37
33
33
- Sanguino: 2, 10, 11
34
34
35
-
2 When using DUE or other boards with 3V3 I/O you *MUST* use a level translator FET or IC like Texas Instruments TXS0102 or similar as most keyboards not only operate at 5V but the two wire communications are pulled up by a resistor to 5V at the keyboard end
35
+
2 When using DUE or other boards with 3V3 I/O you *MUST* use a level translator FET or IC like Texas Instruments TXS0102 or similar as most keyboards not only operate at 5V but the two wire communications are pulled up by a resistor to 5V at the keyboard end
36
36
37
-
###Introduction
37
+
###Introduction
38
38
39
39
After looking round for suitable libraries I found most were lacking in functionality and high in code and data footprint, so I created a series of PS2 Keyboard libraries. The first here is the simplest one suitable for testing your keyboard hardware and understanding what keyboard protocol is.
40
40
@@ -44,15 +44,15 @@ The PS2 Keyboard interface is a *Bi-directional* two wire interface with a clock
44
44
- available() return count of bytes waiting
45
45
- read() return next byte in keycode buffer
46
46
47
-
###Installation
47
+
###Installation
48
48
49
49
Performed by standard zip file library inclusion into Arduino IDE
50
50
51
-
###Examples
51
+
###Examples
52
52
53
53
This library has ONE example, SimpleTest that uses the serial port to output the codes received on every keystroke and auto-repeat, some keyboards change codes on auto-repeat; which you will be able to see for yourself.
0 commit comments