- refactored code structure
- fixed playerID led display
- added Color function with tuple support
- added type checking in every function
- added more Exceptions for out of bound values
This commit is contained in:
Florian Kaiser
2020-12-31 23:48:34 +01:00
parent 8fb31f86ba
commit 94cb09dbdd
7 changed files with 228 additions and 174 deletions

View File

@@ -4,11 +4,11 @@ from pydualsense import *
dualsense = pydualsense()
dualsense.init()
# set color around touchpad to red
dualsense.setColor(0,0,255)
dualsense.light.setColorI(255,0,0)
# enable microphone indicator
dualsense.setMicrophoneLED(1)
# set all player indicators on
dualsense.setPlayerID(PlayerID.all)
dualsense.audio.setMicrophoneLED(1)
# set all player 1 indicator on
dualsense.light.setPlayerID(PlayerID.player1)
# sleep a little to see the result on the controller
# this is not needed in normal usage
import time; time.sleep(2)