PyPeripheral : Python Script for Peripherals | Razer Insider

PyPeripheral : Python Script for Peripherals

  • 5 August 2019
  • 2 replies
  • 168 views

Hello, I have been making a program that syncs all the devices I have.

My Peripherals:

Mouse 1 : Razer DeathAdder Elite
Mouse 2 : Corsair Glaive RGB Pro
Keyboard : Corsair K95 RGB Platinum
Mouse Pad : Corsair MM800 RGB
Head Phones : Corsair Void RGB Pro

As you can see here, my Razer mouse uses Chroma and Razer Synapse as it's LED controlling software. However, all my Corsair devices uses Corsair ICUE as it's LED controlling software. So, I decided to make a program that syncs all the Peripherals.

Personally I am a freshmen studying Computer Science and Engineering in South Korea. I thought that it would be fun project for me to make a program to solve this problem. I have started this project about 2 weeks from now, and it is quite finished for me now, It does work for me now. And I would like to share you guys the working images of the project.

If any of you would like to modify this program, feel free to do so.
Also, huge thanks for all the wrapper projects in python.



Gif that shows all the devices are being synced into one colour



Gif that shows Two mouses using different SDKs are being synced into one colour. Sorry for that low quality gif. I had to downgrade the quality for me to upload it to github for image hosting.

If you are interested , please check https://github.com/gooday2die/PyPheperial for more info.

Thanks for reading this.
I am quite new at this forum right now, so if there is anything wrong with my post, please let me know. Contact me at [email]edina00@naver.com[/email] for further action.

This topic has been closed for comments

2 Replies

DrewMikeWill
Hey, did you see anything in the public interface that allows for me to change the lighting settings when i lock the computer or quit the synapse app? I hate that when I lock my computer that it goes back to rainbow road....


Sorry for late reply. I was on a vacation to Spain.
I think the question that you have asked was not relevant to my post nor project.
However, I do know why that phenomenon happens. So I would be answering that question.

Whenever you set LED via Razer Synapse, Razer Synapse program itself commands the pheperials to light up a specific LED or LEDs. This is due to the fact that Razer Synapse program is running in the background. Which means that if Razer Synapse is not running, LED settings that you have set would not work. If you are not sure what I am saying right now, kill Razer Synapse by task manager or other methods that kill processes by force.

When you turn off or lock the computer, however, the OS kills programs running in the background in order to prepare for shutdown. Razer Synapse is not an exception when OS kills background processes (programs). OS kills Razer Synapse and Razer Synapse cannot control LEDs anymore. So the pheperials that you are using would just show LEDs that had been "Saved" in their hardware memory before (Controlling LEDs via Razer Synapse is not "Saving" the LED informations in those hardwares) which is just rainbow road.

This same issue is identical when it comes to Corsair as well. My K95 RGB Platinum also returns to its rainbow road when I shutdown my PC or lock my PC.

If you have not "saved" any profiles in your pheperials, it would just show rainbow by default. I have not tested how to save it on Razer pheperials, so I would not be able to help you with this.

I tried my best to make you understand how the workflow goes. However, if there is something that confuses you, please let me know. I would be more than happy to help you. Thanks.
Hey, did you see anything in the public interface that allows for me to change the lighting settings when i lock the computer or quit the synapse app? I hate that when I lock my computer that it goes back to rainbow road....