ledfanexe work

 

ledfanexe work ledfanexe work

Dialogue Between Karna and Kunti

Rabindranath Tagore

Translated from Bengali by Ketaki Kushari Dyson

Work — Ledfanexe

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 :

while true do local t = get_temp() if t >= THRESH then alert() else set_speed(40) -- normal operation set_color(0,255,0) -- green when cool end sleep(500) -- poll twice per second end Run it with: 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 To see the full list, run ledfanexe

local THRESH = 80 -- °C local FLASH_MS = 200 The following API is exposed by ledfanexe :

| 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

Published September 10, 2002



The original poem [karNakuntiisa.nbaad] by Rabindranath Tagore appeared in the collection of poems kaahinii * first published in 1900.

Translated by Ketaki Kushari Dyson [ketakI kushaarI Daaisan*] - Ketaki Kushari Dyson was born in Calcutta in 1940 and educated at Calcutta and Oxford. She has been based in England since ... (more)

Click here to send your feedback

* To learn more about the ITRANS script for Bengali, click here.


ledfanexe work
ledfanexe work