add and update examples

This commit is contained in:
Florian Kaiser
2020-12-22 14:58:21 +01:00
parent b004d2bc7b
commit cc767d5fcd
5 changed files with 54 additions and 13 deletions

View File

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