UPS PIco HV3.0A Firmware Code 040 Print Date 18.08.2017
Designed and Manufactured by PiModules and ModMyPi
www.pimodules.com www.modmypi.com
To make working external keys (buttons), user need to solder cables to the THT key
pads. It is not recommended to use a very long cable (due to analog implementation
of the keyboard), their length should not be longer than 100
–
150 mm. However, we
never tested longer cable and if user need to use longer cables should test it on their
site. To make external keys workable user need to short each one with
GN
THT
pad
when pressed. In example if user need to have external access to the FSSD
(F)
button,
need to install button that short the
F
pad with the
GN
pad when pressed. Similar
approach should be followed with other keys. Above picture show how external key
(buttons) need to be connected. It is not needed to connect all of them.
The
key
register holds the latest value of pressed key, so user need to write i.e.
0x00
after reading, to recognize that new key has been pressed (when pressed again, even
the same key). Current implementation requires timed (pooling) reading of this
register to recognize that a key has been pressed. In the future, it is planned to
implement interrupt driven handler for this and other functionalities.
Example of use
sudo i2cget -y 1 0x69 0x1A
should return 1, 2 or 3
The pressed key value will remain in the register until new value will be written when
key (new one or the same) will be pressed. Therefore, user should write zero to this
register after reading to recognize and read again the new (or the same) key if (when)
pressed.
sudo i2cset -y 1 0x69 0x1A 0x00