Arduino Leonardo-compatible PS2Keyboard library
C++ C Java
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
PS2Keyboard.cpp
PS2Keyboard.h
keywords.txt
readme.md

readme.md

This is a fork of PJRC's PS2Keyboard library (v2.3). It was made to work with the Arduino Leonardo via some additional pin definitions.

Specifically, in PS2Keyboard.h, the following was added:

#elif defined(__AVR_ATmega32U4__)
#define CORE_INT0_PIN 3
#define CORE_INT1_PIN 2
#define CORE_INT2_PIN 0
#define CORE_INT3_PIN 1

This uses the additional interrupt pins (INT0-3) available on the Leonardo.

Hopefully this will soon be incorporated into the PJRC-hosted lib.

License

inherited from the original:

GNU Lesser General Public License v2.1 or later
Copyright (c) 2007 Free Software Foundation