adapted code for controlling RGB wake-up light