C-Bus Forums  

Go Back   C-Bus Forums > C-Bus Products > C-Touch/HomeGate/SchedulePlus/PICED

The C-Bus Community Forums is place where C-Bus users can share information and help others with C-Bus. From time to time you will see Clipsal staff on the forums, but this is not an official support channel. If you really need help contact the official support services of Clipsal. More information about the purpose of this forum is available here.

Thread Tools Display Modes
Old 07 Feb 17, 04:50 PM
Jesmond's Avatar
Jesmond Jesmond is offline
Senior Member
Join Date: May 2005
Location: Victoria
Posts: 100
Default RGB Value display on Touchscreen

Hi Guys,

I have seen all the other RGB threads regarding LEDs and DMX and did use logic to SetBrush but I can't work out how to get the three colours (the RGB value ie 156,0,0 or 10223616 as an integer to display on one square in the PICED file so I can demonstrate to my customer what the colour would look like if the load was on?

Can someone please explain how I achieve this.

Thanks as always

Jes Camilleri
Solutions Nsync
0408 801 190 / www.nsync.com.au
Reply With Quote
Old 07 Feb 17, 10:47 PM
Ashley Ashley is offline
Senior Member
Join Date: Dec 2005
Location: Adelaide, Australia
Posts: 472

To convert the 3 colours to an integer you just need:

colour :=(blue shl 16) + (green shl 8) + red;
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C-Bus access through Ethernet connection of Touchscreen nsa195 C-Touch/HomeGate/SchedulePlus/PICED 11 13 Nov 14 11:14 PM
HSV to RGB conversion Ashley Logic Code Examples 0 22 Aug 12 12:20 AM
Touchscreen control over Ethernet via CNI's glenr C-Touch/HomeGate/SchedulePlus/PICED 5 14 Aug 12 11:31 PM
Updating a Colour Touchscreen using old programs Neil C C-Touch/HomeGate/SchedulePlus/PICED 4 21 Apr 09 07:54 PM
Problems with Touchscreen: UK Household Automation C-Touch/HomeGate/SchedulePlus/PICED 5 07 Mar 05 09:04 AM

All times are GMT +10.5. The time now is 05:28 AM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.