Hello guys, i am a newbie into C++ programming and i have a problem making this to work,
the point is when i type a character it should be displayed on the 5110 lcd, but i see only weird Japanese characters so i have no idea what to do i added dtostrf() function but now i gives me ascii caracters 97 for 'a'... can someone help me with this, thanks in advance
The default implementation of the PS2Keyboard library has only a lookup table for the numblock. All other keys will return the keyboard scancode and not the ASCII value. I would have expected a different value though if 'A' is pressed (28 instead of 97). You can find the relevant key codes here: http://www.computer-engineering.org/ps2keyboard/scancodes2.html
on the serial monitor the c variable which hold the character i type is correct, if i type a it show a, but on the lcd it gives me random pixels, i don't know what's wrong, that's why i have added the dtostrf() just to see if it will work with it,
Thank you it worked can you please explain to me what exactly does do hu[0] = c; hu[1] = '\0'; i didn't understand this null terminated string, thank you again