in my keyboard isr, i want to convert scan codes to ascii characters, so i have a line:
const char SCAN2ASCII[128] = "\0\01234567890-= .... fills up 128 bytes ... ";
well anyway, is there some way to make the second byte (the second \0) 27 or any byte value? what is the syntax for doing that? i mean, i want the bytes of SCAN2ASCII to be like this: 0, 27, '1', '2', '3', ... but i dont know how to insert a value of 27...
thanks
scancodes to ascii, const char declaration
RE:scancodes to ascii, const char declaration
try something like this:
const char SCAN2ASCII[128] = {'\0', 27, '1', '2', ..... };
const char SCAN2ASCII[128] = {'\0', 27, '1', '2', ..... };