<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def send_rgb(dev, red, green, blue, dimmer):
 """ Send a set of RGB values to the light """

    cv = [0 for v in range(0, 512)]
    cv[0] = red
    cv[1] = green
    cv[2] = blue
    cv[6] = dimmer
    sent = dev.send_multi_value(1, cv)
    return sent