RFD-FHEM / SIGNALduino_TOOL

FHEM Module for the SIGNALduino project.
GNU General Public License v3.0
4 stars 4 forks source link

display leading zeros #43

Closed elektron-bbs closed 4 years ago

elektron-bbs commented 4 years ago

change_hex_to_bin

Input: 02D084210B60
Output old:       101101000010000100001000010000101101100000
Output new: 000000101101000010000100001000010000101101100000

change_bin_to_hex

Input: 000000101101000010000100001000010000101101100000
Output old:  2D084210B60
Output new: 02D084210B60