lcd.RGB(r, g, b)

Returns a 5/6/5 rgb color code, that can be used with lcd.setColor

@status current Introduced in 2.2.0

Parameters

  • r (integer) a number between 0x00 and 0xff that expresses te amount of red in the color

  • g (integer) a number between 0x00 and 0xff that expresses te amount of green in the color

  • b (integer) a number between 0x00 and 0xff that expresses te amount of blue in the color

Return value

  • number (integer) rgb color expressed in 5/6/5 format

Notice

Only available on Colorlcd radios

Last updated