Sun, 08 Nov 2015 21:24:52 +0100
The server to panel socket protocol
Socket protocol. All commands are 16 bits unsigned integers. D15 D14 D13 D12 D11 D10 RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 0 0 0 LC2 LC1 LC0 0 0 0 0 0 0 0 0 0 1 Screen clear, home 0 0 0 LC2 LC1 LC0 0 0 0 0 0 0 0 0 1 . DDRAM AD=0, return 0 0 0 LC2 LC1 LC0 0 0 0 0 0 0 0 1 I/D S Set moving direction of cursor 0 0 0 LC2 LC1 LC0 0 0 0 0 0 0 1 D C B Display Cursor Blink on/off 0 0 0 LC2 LC1 LC0 0 0 0 0 0 1 S/C R/L . . Remove cursor and display 0 0 0 LC2 LC1 LC0 0 0 0 0 1 DL N F . . Set DL display line font 0 0 0 LC2 LC1 LC0 0 0 0 1 Set CGRAM send/receive data 0 0 0 LC2 LC1 LC0 0 0 1 Set DDRAM sebd/receive data 0 0 0 LC2 LC1 LC0 0 1 BF Busy Flag 0 0 0 LC2 LC1 LC0 1 0 Write data to CGRAM or DDRAM 0 0 0 LC2 LC1 LC0 1 1 Read data from CGRAM or DDRAM 0 0 1 LC2 LC1 LC0 0 0 0 0 0 0 0 0 0 . LED on/off 0 1 0 LC2 LC1 LC0 0 0 0 0 0 0 0 0 0 . Buzzer on/off LC2 LC1 LC0 are the device index, 0..7