You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sets fan speed (0–100%) for fan ID 0 (bottom) or 1 (top)
get_fan_speed(fan_id)
Reads current fan speed percentage
RGB LED Control
Method
Description
set_rgb_led(state)
Sets RGB LED: 0=OFF, 1=RED, 2=BLUE, 3=GREEN
get_rgb_led()
Gets current RGB LED state
Advanced Control
Method
Description
set_dacs(hvp, hvm, hrp, hrm)
Sets DAC outputs (0–4095) for fine voltage calibration
Notes
Most methods raise ValueError if UART is not connected.
Demo mode returns default values without sending real commands.
All commands clear the UART buffer after execution.
Example
hv=interface.hvcontrollerhv.turn_12v_on()
hv.set_voltage(60.0)
print(f"Output Voltage: {hv.get_voltage()} V")
hv.turn_hv_on()
hv.set_rgb_led(2) # Set LED to BLUEfan_speed=hv.get_fan_speed(0)
print(f"Bottom fan is running at {fan_speed}%")