Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DEC to HEX conversion
#1
Hi All,

is there a possibility to convert a DEC integer into a HEX string?

My use case is, to control a RGB lamp with the "RGB led and controler" widget.
The widget delivers the three color values as DEC integers, but my lamp likes to see a 6 digit HEX string (rrggbb).
Any ideas?

Cheers, Peter
Reply
#2
I elaborated a complex solution.
A simpler solution would be appreciated, but therefore a new function is needed: hex(X).
I tried to visualize both solutions in the attached file.


Attached Files
.pdf   lamp_architecture.pdf (Size: 34.26 KB / Downloads: 7)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)