Пример #1
0
#print( "Battery Temp: " + str(api.get_battery_temp_qwiic()))

#print( "Return: " + str(api.set_watchdog_status(2)))
print("WDT Status: " + str(api.get_watchdog_status()))

#print( "Return: " + str(api.set_watchdog_interval(2)))
print("WDT Interval: " + str(api.get_watchdog_interval()))

#print( "Return: " + str(api.set_fan_mode(2)))
print("Fan Mode: " + str(api.get_fan_mode()))

#print( "Return: " + str(api.set_battery_separation_status(1)))
print("Battery Separation: " + str(api.get_battery_separation_status()))

#print( "Return: " + str(api.set_rgb_animation(2,7,3)))
print("RGB Anim: " + str(api.get_rgb_animation()))

#print( "Return: " + str(api.set_fan_automation(50)))

#print( "Return: " + str(api.set_power_outage_event_status(1)))
print("POWER OUT. STAT: " + str(api.get_power_outage_event_status()))

#print( "Return: " + str(api.set_power_outage_params(5,30)))
print("POWER OUT. PARAMS: " + str(api.get_power_outage_params()))

#print( "Return: " + str(api.set_end_device_alive_threshold(250)))
print("Alive Threshold: " + str(api.get_end_device_alive_threshold()))

print("EDM: " + str(api.get_edm_status()))

print("LPM: " + str(api.get_lpm_status()))
Пример #2
0
print("\r\n")
print("************* Fan **************")
print("Fan Health: " + str(api.get_fan_health()))
print("set Fan Mode: " + str(api.set_fan_mode(3, 10)))
print("get Fan Mode: " + str(api.get_fan_mode()))
print("get Fan Speed: " + str(api.get_fan_speed(10)))
print("set Fan Automation Result: " + str(api.set_fan_automation(20, 60, 10)))
print("get Fan Automation: " + str(api.get_fan_automation(10)))
print("\r\n")
print("************* Others **************")
#print("Setting Watchdog Status: " + str(api.set_watchdog_status(1)))
#print("Getting Watchdog Status: " + str(api.get_watchdog_status()))
print("set RGB Animation.: " + str(
    api.set_rgb_animation(Definition.RGB_DISABLED, Definition.BLUE,
                          Definition.RGB_SLOW, 10)))
print("get RGB Animation Status.: " + str(api.get_rgb_animation(10)))
print("set Result Bat. Max Char. Level: " +
      str(api.set_battery_max_charge_level(80, 10)))
print("get Bat. Max Char. Level: " + str(api.get_battery_max_charge_level(10)))
print("set Result Safe Shutdown Bat Lev.: " +
      str(api.set_safe_shutdown_battery_level(40, 10)))
print("get Safe Shutdown Bat Lev.: " +
      str(api.get_safe_shutdown_battery_level(10)))
print("set Result Safe Shutdown Bat Status.: " +
      str(api.set_safe_shutdown_status(1, 10)))
print("get Safe Shutdown Bat Status.: " +
      str(api.get_safe_shutdown_status(10)))
#print("set WatchDog Interval.: " + str(api.set_watchdog_interval(10,10)))
#print("get WatchDog Interval.: " + str(api.get_watchdog_interval(10)))
#print("Button 1 Status: " + str(api.getButton1Status()))
#print("Button 2 Status: " + str(api.getButton2Status()))