Beispiel #1
0
    def headset(self, r, g, b, RazerURI, Duration):
        if SDKS.CorsairHeadSet:
            Corsair.ledOn(CLH.LeftLogo, r, g, b, Duration)
            Corsair.ledOn(CLH.RightLogo, r, g, b, Duration)

        if SDKS.RazerHeadSet:
            EffectID = Razer.createHeadsetEffect("CHROMA_STATIC", r, g, b,
                                                 RazerURI)
            Razer.setEffect(EffectID, RazerURI)
Beispiel #2
0
def setEveryDeviceColor(r, g, b, duration):
    Corsair.KeyboardSetdAll(r, g, b, duration)
    Corsair.MM800SetAll(r, g, b, duration)
    Razer.setEffect(
        Razer.createMouseEffect("CHROMA_STATIC", r, g, b, RazerURI), RazerURI)
    Corsair.ledOn(CLK.GLAV_2, r, g, b, duration)
    Corsair.ledOn(CLK.GLAV_1, r, g, b, duration)
    Corsair.ledOn(CLK.GLAV_3, r, g, b, duration)
    Corsair.ledOn(CLK.VOIDPRO_R, r, g, b, duration)
    Corsair.ledOn(CLK.VOIDPRO_L, r, g, b, duration)
Beispiel #3
0
    def etc(self, r, g, b, RazerURI, Duration):
        if SDKS.RazerETC:
            EffectID = Razer.createETCEffect("CHROMA_STATIC", r, g, b,
                                             RazerURI)
            Razer.setEffect(EffectID, RazerURI)

        if SDKS.CorsairETC:
            for i in range(
                    191, 500, 1
            ):  # Check Wrappers/Corsair/cue_sdk/enumerations.py for more information.
                Corsair.ledOn(i, r, g, b, Duration)
Beispiel #4
0
    def keyboard(self, r, g, b, RazerURI, Duration):
        if SDKS.RazerKeybd:
            EffectID = Razer.createKeyboardEffect("CHROMA_STATIC", r, g, b,
                                                  RazerURI)
            Razer.setEffect(EffectID, RazerURI)

        if SDKS.CorsairKeybd:

            exceptList = [
                148,
                149,
                150,
                151,
                189,
                190,  #Mouse
                155,
                156,
                157,
                158,
                159,
                160,
                161,
                162,
                163,
                164,
                165,
                166,
                167,
                168,
                169,  #mousepad
                152,
                153,  #HeadSet
            ]

            for i in range(191):
                if i not in exceptList:
                    Corsair.ledOn(i, r, g, b, Duration)
Beispiel #5
0
def setall(r, g, b):
    for i in range(200):
        Corsair.ledOn(i, r, g, b, 0.00001)
    Effectid = Razer.createMouseEffect("CHROMA_STATIC", r, g, b, RazerURI)
    Razer.setEffect(Effectid, RazerURI)
Beispiel #6
0
def p1():
    while True:
        for i in range(170, 188, 1):

            Corsair.ledOn(i, 0, 255, 0, 0.01)
            Corsair.ledOn(i + 1, 0, 255, 0, 0.01)

        for i in range(170, 188, 1):
            Corsair.ledOn(i, 0, 0, 0, 0.01)
            Corsair.ledOn(i + 1, 0, 0, 0, 0.01)

        for i in range(188, 170, -1):
            Corsair.ledOn(i, 0, 255, 0, 0.01)
            Corsair.ledOn(i + 1, 0, 255, 0, 0.01)

        for i in range(188, 170, -1):
            Corsair.ledOn(i, 0, 0, 0, 0.01)
            Corsair.ledOn(i + 1, 0, 0, 0, 0.01)
Beispiel #7
0
    def mouse(self, r, g, b, RazerURI, Duration):
        if SDKS.RazerMouse:
            EffectID = Razer.createMouseEffect("CHROMA_STATIC", r, g, b,
                                               RazerURI)
            Razer.setEffect(EffectID, RazerURI)

        if SDKS.CorsairMouse:
            Corsair.ledOn(CLM.Z1, r, g, b, Duration)
            Corsair.ledOn(CLM.Z2, r, g, b, Duration)
            Corsair.ledOn(CLM.Z3, r, g, b, Duration)
            Corsair.ledOn(CLM.Z4, r, g, b, Duration)
            Corsair.ledOn(CLM.Z5, r, g, b, Duration)
            Corsair.ledOn(CLM.Z6, r, g, b, Duration)
Beispiel #8
0
    def headsetstand(self, r, g, b, RazerURI, Duration):
        if SDKS.CorsairHeadSetStand:
            Corsair.ledOn(CLHSS.Zone1, r, g, b, Duration)
            Corsair.ledOn(CLHSS.Zone2, r, g, b, Duration)
            Corsair.ledOn(CLHSS.Zone3, r, g, b, Duration)
            Corsair.ledOn(CLHSS.Zone4, r, g, b, Duration)
            Corsair.ledOn(CLHSS.Zone5, r, g, b, Duration)
            Corsair.ledOn(CLHSS.Zone6, r, g, b, Duration)
            Corsair.ledOn(CLHSS.Zone7, r, g, b, Duration)
            Corsair.ledOn(CLHSS.Zone8, r, g, b, Duration)
            Corsair.ledOn(CLHSS.Zone9, r, g, b, Duration)

        if SDKS.RazerHeadSetStand:
            EffectID = Razer.createETCEffect("CHROMA_STATIC", r, g, b,
                                             RazerURI)
            Razer.setEffect(EffectID, RazerURI)
Beispiel #9
0
    def mousepad(self, r, g, b, RazerURI, Duration):
        if SDKS.RazerMousePD:
            EffectID = Razer.createMousePadEffect("CHROMA_STATIC", r, g, b,
                                                  RazerURI)
            Razer.setEffect(EffectID, RazerURI)

        if SDKS.CorsairMousePD:
            Corsair.ledOn(CLMM.Zone1, r, g, b, Duration)
            Corsair.ledOn(CLMM.Zone2, r, g, b, Duration)
            Corsair.ledOn(CLMM.Zone3, r, g, b, Duration)
            Corsair.ledOn(CLMM.Zone4, r, g, b, Duration)
            Corsair.ledOn(CLMM.Zone5, r, g, b, Duration)
            Corsair.ledOn(CLMM.Zone6, r, g, b, Duration)
            Corsair.ledOn(CLMM.Zone7, r, g, b, Duration)
            Corsair.ledOn(CLMM.Zone8, r, g, b, Duration)
            Corsair.ledOn(CLMM.Zone9, r, g, b, Duration)
            Corsair.ledOn(CLMM.Zone10, r, g, b, Duration)
            Corsair.ledOn(CLMM.Zone11, r, g, b, Duration)
            Corsair.ledOn(CLMM.Zone12, r, g, b, Duration)
            Corsair.ledOn(CLMM.Zone13, r, g, b, Duration)
            Corsair.ledOn(CLMM.Zone14, r, g, b, Duration)
            Corsair.ledOn(CLMM.Zone15, r, g, b, Duration)