Registry / other / smart-leds-trait

smart-leds-trait

JSON →
library0.3.2rscratesunverified

A trait for implementing effects, modifiers and drivers for programmable LEDs.

# Cargo.toml [dependencies] smart-leds-trait = "0.3.2"
INSTALL
IMPORT
SIG · SMART-LEDS-TRAIT
S
smart-leds-trait
otherrustv0.3.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SmartLedsWrite
use smart_leds_trait::SmartLedsWrite;

Defines a vector of RGB8 LEDs using the SmartLedsWrite trait.

use smart_leds_trait::SmartLedsWrite; use smart_leds_trait::RGB8; fn main() { let mut leds: Vec<RGB8> = vec![RGB8::new(255, 0, 0); 10]; // Assume a driver implementing SmartLedsWrite println!("LEDs ready"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
smart-leds-trait — cargo add smart-leds-trait · libregistry