Merge pull request #41 from CrimsonZen/patch-1

fixing leds.py example PlayerID reference
This commit is contained in:
Flo
2023-01-14 19:13:54 +01:00
committed by GitHub

View File

@@ -8,9 +8,9 @@ dualsense.light.setColorI(255,0,0)
# mute microphone # mute microphone
dualsense.audio.setMicrophoneState(True) dualsense.audio.setMicrophoneState(True)
# set all player 1 indicator on # set all player 1 indicator on
dualsense.light.setPlayerID(PlayerID.player1) dualsense.light.setPlayerID(PlayerID.PLAYER_1)
# sleep a little to see the result on the controller # sleep a little to see the result on the controller
# this is not needed in normal usage # this is not needed in normal usage
import time; time.sleep(2) import time; time.sleep(2)
# terminate the thread for message and close the device # terminate the thread for message and close the device
dualsense.close() dualsense.close()