Added support for DE200C VFD
[lcdproc-de200c.git] / server / drivers / de200c-vfd / clients / vfdbrightness.c
blob01874d99329f0a72c125f51570e9aa93ef74ea85
1 // ****************************************************************************
2 // vfdbrightness.c (C) 1992-2003 Christophe de Dinechin (ddd)
3 // VFD800 project
4 // ****************************************************************************
5 //
6 // File Description:
7 //
8 // Select the brightness for the VFD
9 //
10 //
11 //
12 //
13 //
14 //
15 //
16 //
17 // ****************************************************************************
18 // This document is confidential.
19 // Do not redistribute without written permission
20 // ****************************************************************************
21 // * File : $RCSFile$
22 // * Revision : $Revision$
23 // * Date : $Date$
24 // ****************************************************************************
26 #define VFDCLIENT "vfbrightness"
27 #define VFDOPTIONS "options.tbl"
28 #define VFDCONFIG "brightness"
30 #include "vfdclient.h"
33 int main (int argc, char *argv[])
34 // ----------------------------------------------------------------------------
35 // Change VFD brightness
36 // ----------------------------------------------------------------------------
38 int vfd;
40 if (argc < 2)
41 Help();
43 vfd = vfd_open(server, port);
44 vfd_set_brightness(vfd, atoi(argv[1]) / 100.0);