Pages Menu
TwitterRssFacebook

Posted by on May 23, 2013 in Skype for Business® (Lync®)

Busylight SDK – Showing Custom Colours

Busylight SDK – Showing Custom Colours

In my previous post on the new Busylight SDK, I said that I didn’t think it was possible to display any colours other than Red, Green, Blue & Yellow. In fact, I said:

In the future, it would be cool to be able to specify custom colour combinations, maybe using RGB values, to allow for a range of different colours.

Well, the guys at Plenom got back to me, and I was wrong. It IS possible to create your own colours: I’d just not noticed it.

You can create a new BusylightColour object and specify the RGB parts as properties. Here’s an example of doing this to create a nice purple colour:

using Plenom.Components.Busylight.Sdk;
using System.Threading;
namespace ThoughtStuff.BusylightSDK
{
class Program
{
static void Main(string[] args)
{
//Instantiate BusyLightController for either Lync or UC:
var controller = new BusylightLyncController();
// var controller = new BusylightUcController();
controller.Light(new BusylightColor() { RedRgbValue = 40, GreenRgbValue = 0, BlueRgbValue = 40 });
}
}
}

If this short post makes no sense to you at all, I suggest reading the original post on the Busylight SDK, which I’ve updated with this new information.

Written by Tom Morgan

Tom is a Microsoft Teams Platform developer and Microsoft MVP who has been blogging for over a decade. Find out more.
Buy the book: Building and Developing Apps & Bots for Microsoft Teams. Now available to purchase online with free updates.

Post a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.