LCD Interface
Nearly all of the functions for writing to the LCD and
reading from the keypad are contained within this form. Because LCD's vary the
actual scripts of this file may need changing but experimentation with a few
displays has found that so far, no changes have been required.
To use the interface, assuming the port is open on the
green form, simply enter what you want the see in the text poxes provided. It
more than likely that you will need to change the value that moves the display
to the second line, the default is C0 (hex) but on 16 line display this is quite
often 40. Some trial an error may be needed here.
The send date button uses the VBScript date() and time()
functions. This could form the bases of other more exotic system based
information, given the right API. Also if connected to the internet the display
could show a news feed perhaps?
Keypad Interface
the 'Get Key' button will get the number of keys in the
buffer and the value of the read key, provided there are keys in the buffer this
value will decrement ready to get the next key. If no keys are in the buffer 0
is returned and the default key presented, usually with a value of 15.
Because it is unknown how the rows and columns will be
connected to the interface it is possible to map values to scan codes received
when a key is pressed. This can be a bit confusing but here a simple button is
provided, use it as follows:
-
Make sure that the interface is in the factory reset
state, you can do this by using the 'factory' button on the blue form above
-
Press each key in turn starting at 0, press the * and # last then
they will be assigned values of 11 & 12.
-
Press the 'Map keys' button.
There is no feedback to say that it has completed. Test by pressing a couple
of known kesy and look at the results.
.
|