====== Logic Way ABP (ABP08, ABP09) driver ====== [[http://www.logicway.de/pages/mde-hardware.shtml#ABP.AMC|Logic Way GmbH]] offers the ABP08 (RS232) and ABP09 (USB) appliance control panels with a 3x16 text LCD display. At the moment the driver supports text output, [[:lcd4linux:widget_keypad|keypad]] usage, background color definition. The panel's clock is automatically synchronized from the PC. The panel has an built-in switch contact that can be used to scheduled power-on the computer when switched off. Other functions (buzzer and situation-dependent background colorization) are future work. ---- ===== Example ===== Display ABP08-16x3 { Driver 'LW_ABP' Port '/dev/tts/0' Speed 19200 Size '16x3' Background 'b 1' # background: first character for color r, g, b, c, m, or y; number for brightness 0 = low, 1 = more Switchcontact '/etc/wakeup.conf' # specified file can contain a timestamp (UTC), when switch contact has to be closed for a second # at least the file consists of a single line of text; format is: # switchtime=1258477576 } ---- ===== Plugins ===== The driver provides the following function: |LCD::background(color)|set the background color of the panel and return it. //color// is a string in the same format as the //Background// entry: a letter for the color (r, g, b, c, m, y or w) followed by a blank and the brightness (0 or 1), e.g. 'g 1'. Without a parameter the function returns the current color.| Example: a red background while the load is high Widget BgTimer { class 'Timer' expression LCD::background(loadavg(1) > 2 ? 'r 1' : 'b 0') active 1 update 5000 } ----