-->
Page 1 of 2

Added ps2 key board input

PostPosted: Sun Nov 22, 2015 6:55 am
by Mmiscool
Hello,

I just added ps2 keyboard input but don't have a key board to test with at the moment.

I would very much appreciate it if some one with the hardware could test it.

I integrated the arduino library from here.
http://www.pjrc.com/teensy/td_libs_PS2Keyboard.html


A simple test program that should work is shown below.


Pins to use are 12 for data and 12 for irq.

Code: Select allbutton "click me" [test]
wait

[test]
ps2input bla
print bla
wait


Give it a shot and let me know.

Re: Added ps2 key board input

PostPosted: Mon Nov 23, 2015 7:01 am
by sandfrog
Hello the Linked Lib is that them used without Chage ? i have e Problem whit this by Compile espBasic

Code: Select all/home/theborg/Arduino/libraries/PS2Keyboard/PS2Keyboard.cpp:265:53: warning: multi-character character constant [-Wmultichar]
  0 /*CapsLock*/, 0 /*Rshift*/, PS2_ENTER /*Enter*/, 'ยค', 0, '#', 0, 0,
                                                     ^
/home/theborg/Arduino/libraries/PS2Keyboard/PS2Keyboard.cpp:271:1: warning: narrowing conversion of '49828' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
 };
 ^
/home/theborg/Arduino/libraries/PS2Keyboard/PS2Keyboard.cpp:271:1: warning: large integer implicitly truncated to unsigned type [-Woverflow]
/home/theborg/.arduino15/packages/esp8266/hardware/esp8266/1.6.5-1160-gef26c5f/cores/esp8266/libc_replacements.c:408:22: warning: 'struct tm' declared inside parameter list [enabled by default]
 time_t mktime(struct tm *timp) {
                      ^
/home/theborg/.arduino15/packages/esp8266/hardware/esp8266/1.6.5-1160-gef26c5f/cores/esp8266/libc_replacements.c:408:22: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

Re: Added ps2 key board input

PostPosted: Mon Nov 23, 2015 7:08 am
by Mmiscool
Yes. I have made no changes to the library. It will throw a few warnings.

I believe these can be safely ignored.

Re: Added ps2 key board input

PostPosted: Mon Nov 23, 2015 7:10 am
by sandfrog
Ok, thx than i have a other Problem my Build is very In-stable and Reboot Permanently ;(