Post about your Basic project here

Moderator: Mmiscool

User avatar
By Mmiscool
#34672 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.
User avatar
By sandfrog
#34759 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]
User avatar
By Mmiscool
#34761 Yes. I have made no changes to the library. It will throw a few warnings.

I believe these can be safely ignored.