Adding code to make the RGB switching work. Taken from the singa (singa.c). Signed-off-by: Simon R <me@dieideeistgut.de>