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)
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)
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)
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)
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)
import time from Wrappers.cue_sdk import * #Corsair.debugON() #Corsair.FirstInit() #print(Corsair.DeviceInfo()) #print(Corsair.DeviceList) #print(Corsair. DeviceID(Corsair.DeviceList)) #Corsair.FirstInit() #print(Corsair.DeviceInfo()) #Corsair.FirstInit() Corsair.debugON() Corsair.FirstInit() RazerURI = Razer.geturi() Razer.debugON() 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)
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)
from Wrappers import Corsair from Wrappers import Razer import time from Wrappers.cue_sdk import * Corsair.RequestControl() Corsair.debugON() RazerURI = Razer.geturi() Razer.debugON() 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)
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)
def SDKInits(self, DEVLIST): global RazerURI ops = SDKops() ops.clearSDK() ops.SDKtypes(DEVLIST) if mainDebug: print(DEVLIST.sdks) if "RAZER" in DEVLIST.sdks: print("[INFO] RAZER Device Found. Initiating SDK") RazerURI = Razer.geturi() SDKS.Razer = True if "RAZER" in DEVLIST.mouse: SDKS.RazerMouse = True if "RAZER" in DEVLIST.headset: SDKS.RazerHeadSet = True if "RAZER" in DEVLIST.keyboard: SDKS.RazerKeybd = True if "RAZER" in DEVLIST.mousepad: SDKS.RazerMousePD = True if "RAZER" in DEVLIST.headsetstand: SDKS.RazerHeadSetStand = True if "RAZER" in DEVLIST.etc: SDKS.RazerETC = True if "CORSAIR" in DEVLIST.sdks: print("[INFO] CORSAIR Device Found. Requesting Control") Corsair.RequestControl() SDKS.Corsair = True if "CORSAIR" in DEVLIST.mouse: SDKS.CorsairMouse = True if "CORSAIR" in DEVLIST.headset: SDKS.CorsairHeadSet = True if "CORSAIR" in DEVLIST.keyboard: SDKS.CorsairKeybd = True if "CORSAIR" in DEVLIST.mousepad: SDKS.CorsairMousePD = True if "CORSAIR" in DEVLIST.headsetstand: SDKS.CorsairHeadSetStand = True if "CORSAIR" in DEVLIST.etc: SDKS.CorsairETC = True if ("CORSAIR" not in DEVLIST.sdks) and ("RAZER" not in DEVLIST.sdks): print( "[INFO] No Supported SDKs found. Only Razer and Corsair are supported right now." ) print("[INFO] Exiting Program ...") exit(0) if mainDebug: print(vars(SDKS))
def Corsair(self): Corsair.debugON()
def AllON(self): global mainDebug mainDebug = True Corsair.debugON() Razer.debugON()
def OFF(self): global mainDebug mainDebug = False Corsair.debugOFF() Razer.debugOFF()
def __init__(self): global mainDebug mainDebug = False Corsair.debugOFF() Razer.debugOFF()
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)
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)