aboutsummaryrefslogtreecommitdiffstats
path: root/README (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2009-03-26fix cygwin compilemichux1-0/+19
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1001 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-03-25I just wanted to commit the 1000st change to lcd4linux ;)michux1-2/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1000 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-03-25minor fixupmichux1-9/+4
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@999 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-03-25more vnc driver stuff...michux3-40/+59
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@998 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-03-25add vnc drivermichux9-114/+627
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@997 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-03-23test intersection of (displayable) widgetsvolker9-15/+82
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@996 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-03-16Fixed pot. buffer overflow in glcd2usbharbaum1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@995 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-03-16glcd2usb button supportharbaum1-13/+11
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@994 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-03-16glcd2usb button supportharbaum3-3747/+3087
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@993 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-03-04autoconf updatemichael3-2946/+3598
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@992 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-03-04GLCD2USB by Till Harbaummichael5-13/+59
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@991 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-03-04add asc255bug setting to MatrixOrbital driver by Maik Dilgermichael1-1/+7
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@990 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-02-28indentmichael1-50/+46
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@989 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-02-28driver for GX series lcd from Matrix Orbital by Abbas Kosanmichael7-3/+626
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@988 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-02-28GLCD2USB driver from Till Harbaummichael8-14/+629
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@987 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-02-28added some contrib files from Nicu Pavelmichael6-0/+1101
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@986 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-02-28patch for picoLCDGraphics that adds keypad/gpi/gpo capabilities from Nicu Pavelmichael1-5/+30
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@985 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-02-28uh-oh... changed perl comment to C comment :-)michael1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@984 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-02-28IRLCD patch from Jussi Kilpelainenmichael1-2/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@983 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-29removed backslash handling from cfg.c (its now part of the evaluator)michael1-37/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@982 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-29add octal escape sequences to evaluatormichael1-0/+15
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@981 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-28update st2205 desc.michux1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@980 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-26evaluator: escape sequences in strings (fix for ticket #145)michael1-5/+57
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@979 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-23wifi ioctl() fixed (ticket #144)michael1-3/+12
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@978 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-19style 'H' (hollow) for vertical bars, individual bar colors for vertical ↵michael2-11/+15
bars fixed git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@977 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-18Brightness dimms every colorvolker1-5/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@976 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-18more descriptive display names with option -lmichael19-19/+20
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@975 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-18'emty format string' compiler warning solvedmichael1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@974 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-17correct brightness handling, reduced round tripsvolker1-16/+38
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@973 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-16Closing XWindow quits without errorvolker1-9/+15
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@972 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-16option parsing modifiedmichael1-10/+16
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@971 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-16dump config file if verbose_level > 1michael1-0/+24
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@970 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-16indentationmichael1-13/+13
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@969 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-15layout parser simplified with cfg_renamemichael1-11/+52
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@968 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-15new function cfg_rename()michael2-2/+58
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@967 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-14optimized drawing; check max. screen sizevolker1-6/+20
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@966 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-14version bumped; ChangeLog updatedmichael2-2013/+1456
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@965 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-14add support for Dell M1730 LCD to the G15 driver by lcd4linux@hayward.uk.commichael1-12/+18
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@964 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-14initial brightness fixedmichael1-3/+4
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@963 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-13indentation, svn-versionvolker2-45/+45
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@962 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-13speedup X11 displayvolker1-9/+57
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@961 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-13new example for X11 configmichael1-6/+4
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@960 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-13heavy X11 reorganization to (hopefully) finally fix Tickets #141 and #117michael3-41/+59
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@959 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-13list sub-drivers for serdisplib without -vmichael3-19/+36
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@958 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-13moved 'print list of drivers and plugins' to the end of configuremichael4-36/+27
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@957 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-12update copyrightmichux1-2/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@956 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-12additional verbose messagesvolker3-4/+18
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@955 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-12fix some compiler warningsmichux1-5/+5
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@954 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-11plugin_fifo: fix compile warningsmichux1-2/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@953 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-11drv_st2205u: add verbose error messagemichux1-1/+3
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@952 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
lass="p">) color |= 0x40; /* ignore blue ... */ tx_buffer[1 + 20 * r + c / 4] &= ~(0xc0 >> (2 * (c & 3))); tx_buffer[1 + 20 * r + c / 4] |= color >> (2 * (c & 3)); } } /* scan entire display */ tx_buffer[0] = DSP_CMD_IMAGE; do { if ((sendto(sock, tx_buffer, DSP_MEM + 1, 0, (struct sockaddr *) &dsp_addr, sizeof(dsp_addr))) != DSP_MEM + 1) error("%s: sendto error on socket", Name); /* now wait for reply */ FD_ZERO(&rfds); FD_SET(sock, &rfds); tv.tv_sec = 0; tv.tv_usec = 100000; /* wait 1 sec for ack */ if ((i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv)) < 0) { info("%s: Select error: %s", Name, strerror(errno)); } if (FD_ISSET(sock, &rfds)) { /* wait for ack */ fromlen = sizeof(dsp_addr); i = recvfrom(sock, reply, sizeof(reply), 0, (struct sockaddr *) &cli_addr, &fromlen); if (i < 0) { info("%s: Receive error: %s", Name, strerror(errno)); } else { if ((i == 2) && (reply[0] == DSP_CMD_ACK) && (reply[1] == DSP_CMD_IMAGE)) { ack = 1; } else if ((i > 1) && (reply[0] == DSP_CMD_IR)) { /* maybe used later: */ /* ir_receive(reply+1, i-1); */ } else { info("%s: Unexpected reply message", Name); } } } timeout--; } while ((!ack) && (timeout > 0)); if (timeout == 0) { error("%s: display reply timeout", Name); } } static int drv_LEDMatrix_start(const char *section) { char *s; struct sockaddr_in cli_addr; struct hostent *hp; int val; IPAddress = cfg_get(section, "IPAddress", NULL); if (IPAddress == NULL || *IPAddress == '\0') { error("%s: no '%s.IPAddress' entry from %s", Name, section, cfg_source()); return -1; } if (cfg_number(section, "Port", 0, 0, 65535, &val) > 0) { info("%s: port set to %d", Name, val); port = val; } else { info("%s: using default port %d", Name, port); } /* display size is hard coded */ DCOLS = 80; DROWS = 32; if (sscanf(s = cfg_get(section, "font", "6x8"), "%dx%d", &XRES, &YRES) != 2 || XRES < 1 || YRES < 1) { error("%s: bad %s.Font '%s' from %s", Name, section, s, cfg_source()); free(s); return -1; } free(s); /* contact display */ info("%s: contacting %s", Name, IPAddress); /* try to resolve as a hostname */ if ((hp = gethostbyname(IPAddress)) == NULL) { error("%s: unable to resolve hostname %s: %s", Name, IPAddress, strerror(errno)); return -1; } /* open datagram socket */ if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { error("%s: could not create socket: %s", Name, strerror(errno)); return -1; } memset((char *) &dsp_addr, 0, sizeof(dsp_addr)); dsp_addr.sin_family = AF_INET; dsp_addr.sin_addr.s_addr = *(int *) hp->h_addr; dsp_addr.sin_port = htons(port); cli_addr.sin_family = AF_INET; cli_addr.sin_addr.s_addr = htons(INADDR_ANY); cli_addr.sin_port = htons(port); if (bind(sock, (struct sockaddr *) &cli_addr, sizeof(cli_addr)) < 0) { error("%s: can't bind local address: %s", Name, strerror(errno)); return -1; } memset(tx_buffer, 0, sizeof(tx_buffer)); return 0; } /****************************************/ /*** plugins ***/ /****************************************/ /* none at the moment... */ /****************************************/ /*** widget callbacks ***/ /****************************************/ /* using drv_generic_graphic_draw(W) */ /* using drv_generic_graphic_icon_draw(W) */ /* using drv_generic_graphic_bar_draw(W) */ /****************************************/ /*** exported functions ***/ /****************************************/ /* list models */ int drv_LEDMatrix_list(void) { printf("LEDMATRIX by Till Harbaum"); return 0; } /* initialize driver & display */ int drv_LEDMatrix_init(const char *section, const __attribute__ ((unused)) int quiet) { WIDGET_CLASS wc; int ret; /* real worker functions */ drv_generic_graphic_real_blit = drv_LEDMatrix_blit; /* start display */ if ((ret = drv_LEDMatrix_start(section)) != 0) return ret; /* initialize generic graphic driver */ if ((ret = drv_generic_graphic_init(section, Name)) != 0) return ret; /* register text widget */ wc = Widget_Text; wc.draw = drv_generic_graphic_draw; widget_register(&wc); /* register icon widget */ wc = Widget_Icon; wc.draw = drv_generic_graphic_icon_draw; widget_register(&wc); /* register bar widget */ wc = Widget_Bar; wc.draw = drv_generic_graphic_bar_draw; widget_register(&wc); /* register plugins */ /* none at the moment... */ return 0; } /* close driver & display */ int drv_LEDMatrix_quit(const __attribute__ ((unused)) int quiet) { info("%s: shutting down.", Name); drv_generic_graphic_quit(); if (sock != -1) close(sock); return (0); } DRIVER drv_LEDMatrix = { .name = Name, .list = drv_LEDMatrix_list, .init = drv_LEDMatrix_init, .quit = drv_LEDMatrix_quit, };