# HG changeset patch # User Michiel Broek # Date 1447014292 -3600 # Node ID 9943f49fdb985b059177b4cb0bd3798cb43cc6af # Parent 7e6d682fc950ff46d1a761888ad798d4f0fbbc3f The server to panel socket protocol diff -r 7e6d682fc950 -r 9943f49fdb98 brewpanel/README --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/brewpanel/README Sun Nov 08 21:24:52 2015 +0100 @@ -0,0 +1,23 @@ + + 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 +