Ledfanexe Work -

| Function | Parameters | Description | |----------|------------|-------------| | set_speed(percent) | 0‑100 | Directly set PWM duty cycle. | | set_color(r,g,b) | 0‑255 each | Apply a solid color to LEDs. | | set_pixel(i, r,g,b) | i = 0‑(N‑1) | Set an individual LED (useful for strips). | | set_gradient(startColor, endColor) | r,g,b tables | Smooth gradient across the whole strip. | | get_temp() | – | Returns current CPU temperature in °C (float). | | get_load() | – | Returns CPU usage percent. | | on(event, func) | event = "temp", "load", "audio" | Register a callback. | | sleep(ms) | – | Pause script execution (non‑blocking). | 6.1 Minimal “Heat‑Alert” Script -- heat-alert.lua -- Turn fan to 100% and flash red when CPU ≥ 80 °C

ledfanexe.exe -script heat-alert.lua -- music-sync.lua local sensitivity = 0.6 -- tweak to your environment ledfanexe work

To see the full list, run ledfanexe.exe -anim list . The Lua engine gives you the most flexibility. A script is just a plain text file ending in .lua . The following API is exposed by ledfanexe : | | set_gradient(startColor, endColor) | r,g,b tables |

function alert() set_speed(100) -- full speed set_color(255,0,0) -- solid red sleep(FLASH_MS) set_color(0,0,0) -- off (or any other colour) sleep(FLASH_MS) end | | on(event, func) | event = "temp",

function on("audio", level) -- level is 0‑1, map to brightness local bright = math.min(255, level * 255 * sensitivity) set_color(bright, bright, bright) -- white pulse end