Skip to content

MiraboxSpace/Linux-StreamDock-PythonSDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux Systems (Ubuntu/Debian)

You need to install pillow, pyudev, threading, ctypes, time, abc

pip install pillow
pip install pyudev
pip install threading
pip install ctypes
pip install time
pip install abc

When using it, you need to first define a DeviceManager class object (device manager class), and then call its enumerate() function to traverse the devices and obtain a list of device objects.

manner = DeviceManager();
streamdocks = manner.enumerate();

After obtaining the list of device objects, you need to call the open() method to open the device before calling other methods to operate on the device.

 for device in streamdocks:
    device.open()
    device.refresh()
    t1 = threading.Thread(target=device.whileread)
    t1.start()
    # 0-100
    device.set_brightness(100)
    device.set_touchscreen_image("1.jpg")
    time.sleep(1)
    device.set_key_image(3, "2.jpg")
    time.sleep(1)
    device.cleaerIcon(3)
    time.sleep(1)
    device.clearAllIcon()
    device.refresh()
    time.sleep(1)
    device.close()
    time.sleep(1)

Please see the document for details

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages