0
Beantwoord

Colourpicker RGB value

Harm 10 maand geleden in Tips and Tricks bijgewerkt door Aleksandr Romanov (CTO) 8 maand geleden 2

Hello,

How can I use the colourpicker (http://wiki2.iridiummobile.net/Examples_of_Controlling_Equipment_of_the_KNX_Bus and https://s3.amazonaws.com/iRidiumWiki2.0/Driver_KNX/KNX_ColorPicker.irpz) on one RGB-address (3x255)?

The variable "color" does not have the right value and need to be converted.

Someone have an idea?


Best wishes,

Harm

GOED, IK BEN TEVREDEN
Satisfaction mark by Harm 8 maand geleden

With some testing found the solution:

rgbvalue = Math.floor(color/256 - 1);