PS2Keyboard library error

andromeda

Well-known member
Hi,
on arduino 2.3.3, i have installed library PS2Keyboard, when i compil the sketch simple test, i have this error
on PS2Keboard.cpp. My mcu is ATmega1284p.
I use pin 18 and pin 19.

Code:
d:\donnees\dev\ARDUINO2\sketch\libraries\PS2Keyboard\PS2Keyboard.cpp:265:53: warning: multi-character character constant [-Wmultichar]
  0 /*CapsLock*/, 0 /*Rshift*/, PS2_ENTER /*Enter*/, '¤', 0, '#', 0, 0,
                                                     ^~~~
d:\donnees\dev\ARDUINO2\sketch\libraries\PS2Keyboard\PS2Keyboard.cpp:153:1: warning: missing initializer for member 'PS2Keymap_t::altgr' [-Wmissing-field-initializers]
 };
 ^
d:\donnees\dev\ARDUINO2\sketch\libraries\PS2Keyboard\PS2Keyboard.cpp:271:1: error: narrowing conversion of '-15708' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
 };
 ^
Thanks for your help.
 
I found the problem, it was the characther ¤, i replaced it by 0, and the sketch compil, but sketch simple_test not work,
nothing appear on terminal (teraterm windows) when i type on keyboard.
i use +5v, gnd, data and clock pin 18 and pin 19 from ATmega1284p, all pin have INT.
 
Back
Top