mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
71fe020f84
git-svn-id: https://svn.fhem.de/fhem/trunk@3 2b470e98-0d58-463d-a4d8-8e2adae1ed80
24 lines
455 B
Plaintext
24 lines
455 B
Plaintext
Four2hex was written to convert the housecode based on digits ranging from 1
|
|
to 4 into hex code and vica versa.
|
|
Four2hex is freeware based on the GNU Public license.
|
|
|
|
To built it:
|
|
$ make four2hex
|
|
|
|
Install it to /usr/local/bin:
|
|
$ su
|
|
# make install
|
|
|
|
|
|
Here an example from "four"-based to hex:
|
|
$ four2hex 12341234
|
|
1b1b
|
|
|
|
Here an example in the other (reverse) direction:
|
|
$ four2hex -r 1b1b
|
|
12341234
|
|
|
|
Enjoy.
|
|
Peter Stark, (Peter dot stark at t-online dot de)
|
|
|