#!html

Last code version has not been checked in yet.


====== FutabaVFD ====== \\\ {{:FutabaVFD_Menu_Serial.png}} \\\ Futaba M402SD06GL 40x2 VFD, [[:plugin_menu|Plugin Menu]], [[:plugin_control_ctrl_serial|ctrl_serial]] (2 LED, 4 Buttons) \\\ \\\ ====== 1. Description ====== This driver was written based on the manual of the Futaba VFD Module M402SD06GJ to operate on the parallel port. It has been tested with the Futaba VFD M402SD06GL. Since the display is quiet bright and takes some watts, the wiring contains a double throw switch to switch the VFD on/off. The power state is checked every 100ms by an interal timer. \\\ ====== 2. Wiring ====== This driver requires the following hardwiring. #!html

WITHOUT ANY WARRANTY AND AT YOUR OWN RISK

{{:wiring_futaba.png}} **Parallel port** |**Pin**| **13** | **12** | **11** | **10** | **9** | **8** | **7** | **6** | **5** | **4** | **3** | **2** | **1** | |**Signal**| SELECT | PAPEROUT | BUSY* | ACK | D7 | D6 | D5 | D4 | D3 | D2 | D1 | D0 | STROBE* | |**Pin**| **25** | **24** | **23** | **22** | **21** | **20** | **19** | **18** | **17** | **16** | **15** | **14** | | |**Signal**| || || || | GND | SLCTIN* | INIT | ERROR | AUTOFD* | | | || || || || || || | * inverted | **VFD connector** |**Pin**| **2** | **4** | **6** | **8** | **10** | **12** | **14** | **16** | **18** | **20** | |**Signal**| || +5V | || | GND | TEST | SEL* | BUSY | |**Pin**| **1** | **3** | **5** | **7** | **9** | **11** | **13** | **15** | **17** | **19** | |**Signal**| D7 | D6 | D5 | D4 | D3 | D2 | D1 | D0 | WR* | --- | | || || || || ||*inverted| \\\ ====== 3. Configuration ====== The structure in the config-file looks like this: Display VFD { Driver 'FutabaVFD' Port '/dev/parport0' Size '40x2' brightness 3 poweron onCounter = onCounter + 1 poweroff offCounter = offCounter + 1 } **Parameters:** |**Driver**|Has to be 'FutabaVFD' to use this driver.| |**Port**|Path to the parallel port.| |**Size**|Size of the VFD. 40x2 ==> 40 columns, 2 rows| |**brightness***|Brigness of the VFD. [[:0..3,|default: 0 (darkest)]]| |**poweron***|Expression that will be evaluated everytime`**` the display is switched on.| |**poweroff***|Expression that will be evaluated everytime`**` the display is switched off.| | |* //optional//, `**` //very short switch states may stay undetected//| \\\ ====== 4. Functions ====== |**Function**|**args**|**Description**| |**LCD::brightness(** //[[:val]]// **)**| 0-1 |Gets or sets brightness 0-3.| |**LCD::power()**| 0 |Returns 1 if last detected state is ON, else 0.|