You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

example2.py 1.0KB

  1. from pms_api import SixfabPMS, Definition
  2. import time
  3. pms = SixfabPMS()
  4. print("Setting Watchdog Status: " + str(pms.setWatchdogStatus(0)))
  5. print("Getting Watchdog Status: " + str(pms.getWatchdogStatus()))
  6. print("RGB Animation Result: " + str(pms.setRgbAnimation(2,3,3)))
  7. print("RGB Animation: " + str(pms.getRgbAnimation()))
  8. print("Fan Speed Result: " + str(pms.setFanSpeed(1)))
  9. print("Fan Speed: " + str(pms.getFanSpeed()))
  10. print("Set Fan Automation Result: " + str(pms.setFanAutomation(20,60)))
  11. print("Fan Automation: " + str(pms.getFanAutomation()))
  12. print("Result Safe Shutdown Bat Lev.: " + str(pms.setSafeShutdownBatteryLevel(10)))
  13. print("Safe Shutdown Bat Lev.: " + str(pms.getSafeShutdownBatteryLevel()))
  14. print("Result Safe Shutdown Bat Status.: " + str(pms.setSafeShutdownBatteryStatus(0)))
  15. print("Safe Shutdown Bat Status.: " + str(pms.getSafeShutdownBatteryStatus()))
  16. print("Result Bat. Max Char. Level: " + str(pms.setBatteryMaxChargeLevel(90)))
  17. print("Bat. Max Char. Level: " + str(pms.getBatteryMaxChargeLevel()))