| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Phidget.SetLED
Set the color of a single of LED.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Phidget | 16.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Phidget.SetLED"; PhidgetRef; address; red; green; blue; white; fadeTime ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| PhidgetRef | The reference number for the phidget. | $phidget |
| address | The address of the LED. | |
| red | The red value. 0 to 255. |
|
| green | The green value. 0 to 255. |
|
| blue | The blue value. 0 to 255. |
|
| white | The white value. 0 to 255. |
|
| fadeTime | The time to fade from the previous state in milliseconds. |
Result
Returns OK or error.
Description
Set the color of a single of LED.Only for LED arrays.
See also
Release notes
- Version 16.1
- Added Phidget.ClearLEDs, Phidget.SetAnimation, Phidget.SetLED, Phidget.SetLEDs, Phidget.StopAnimation and Phidget.SynchronizeAnimations functions.
Blog Entries
This function checks for a license.
Created 30th January 2026, last changed 30th January 2026