diff -r c51265b518ce -r e54611453d29 thermferm/slcd.c --- a/thermferm/slcd.c Thu Nov 19 20:45:09 2015 +0100 +++ b/thermferm/slcd.c Thu Nov 19 21:17:26 2015 +0100 @@ -26,27 +26,11 @@ #include "xutil.h" -#define SLCD_NULL 0x0000 -#define SLCD_CLEAR 0x0001 -#define SLCD_MCLEAR 0x1fff -#define SLCD_HOME 0x0002 -#define SLCD_MHOME 0x1ffe -#define SLCD_DGRAM 0x0080 -#define SLCD_MDGRAM 0x1f80 -#define SLCD_DATA 0x0200 -#define SLCD_MDATA 0x1e00 -#define SLCD_LEDS 0x0400 -#define SLCD_MLEDS 0x1c00 -#define SLCD_KEYS 0x0800 -#define SLCD_MKEYS 0x1800 -#define SLCD_MDEV 0xe000 - -#define SEND_PORT 6554 - struct sockaddr_in sendaddr; /* Server send socket */ int sock = -1; uint16_t keys = 0x0000; +uint16_t leds = 0x0400; /* LED's, buzzer, LCD backlight */ extern int debug; @@ -94,6 +78,13 @@ } + +void slcdLEDs(int fd) +{ + putLCDsocket(fd, leds); +} + + //void slcdHome(int fd) //{ //}