[fpc-pascal]Hex chars

Marco van de Voort marcov at stack.nl
Sun Sep 7 12:13:04 CEST 2003


> I am trying to write to a serial LCD device on /dev/ttys0 and I need to pass hex codes to it. According to the documentation, in C is done like this:
> 
> putch(0xfe);
> putch('X');
> 
> What will be the similar commad in FPC?

write(chr($FE),'X');





More information about the fpc-pascal mailing list