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

-- Keep the fan at a comfortable 50% set_speed(50) This script requires the event source, which ledfanexe automatically enables when a script registers on("audio", …) . 7. Installation & First‑Time Setup | Step | Action | |------|--------| | 1. Download | Grab the latest ledfanexe_vX.Y.Z.zip from the official site (e.g., https://ledfanexe.example.com/download ). | | 2. Extract | Unzip to a folder, e.g., C:\Program Files\LED‑Fan‑EXE . | | 3. Add to PATH (optional) | setx PATH "%PATH%;C:\Program Files\LED‑Fan‑EXE" – lets you call ledfanexe from any command prompt. | | 4. Test detection | Open a Command Prompt (admin) and run ledfanexe.exe -list . You should see something like: [0] Cooler Master 120mm RGB PWM Fan (WS2812) . | | 5. Run a demo | ledfanexe.exe -anim rainbow -speed 60 . The fan should spin at 60 % and display a moving rainbow. | | 6. Persist settings | Create a ledfan.ini next to the exe: ini<br>[General]<br>Device=0<br>DefaultAnim=breath<br>DefaultSpeed=45<br> Running ledfanexe.exe without arguments now uses these defaults. | | 7. Autostart (optional) | Add a shortcut to %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup that calls ledfanexe.exe -script myprofile.lua . | 8. Troubleshooting | Symptom | Likely Cause | Fix | |---------|--------------|-----| | Fan does not spin | PWM header not detected or disabled in BIOS. | Enable “CPU Fan Control” in BIOS, or connect the fan to a different CHA‑fan header. | | LEDs stay dark | Data line not mapped, or LEDs need 5 V power. | Verify the fan’s 5 V line is connected; run ledfanexe.exe -list again and confirm the “LED” device appears. | | Flickering colors | Timing issue (WS2812 requires ~800 k ledfanexe work

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 | | set_gradient(startColor, endColor) | r,g,b tables |

찾으시는 제품이 없거나 견적이 필요하십니까?

신제품 조달에서 기존 솔루션 최적화에 이르기까지 IT 부문의 모든 브랜드와 협력하여 비즈니스 생산성과 연결성을 유지하는 데 필요한 도구를 제공합니다.