{"id":58407,"library":"smart-leds","title":"smart-leds","description":"A crate to use smart-LED device drivers (e.g., WS2812) in embedded Rust.","status":"active","version":"0.4.0","language":"rust","source_language":null,"source_url":"https://github.com/smart-leds-rs/smart-leds","tags":["embedded","leds","ws2812","rgb","hardware"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nsmart-leds = \"0.4.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add smart-leds","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"SmartLedsWrite","correct":"use smart_leds::SmartLedsWrite;"}],"quickstart":{"code":"use smart_leds::SmartLedsWrite;\nuse smart_leds::RGB8;\n\nfn main() {\n    // Example with a mock driver; real usage requires a hardware driver.\n    let mut led = smart_leds::MockSmartLeds::new();\n    let data = [RGB8::new(255, 0, 0), RGB8::new(0, 255, 0)];\n    led.write(data.iter().cloned()).unwrap();\n}","lang":"rust","description":"Write RGB data to a smart LED strip."},"warnings":[{"fix":"Add a driver crate like `ws2812-spi` and implement the `SmartLedsWrite` trait.","message":"Requires a hardware-specific driver crate (e.g., `ws2812-spi`) for actual LED control.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'crate':5 'devic':11 'driver':12 'e.g':13 'embed':16,18 'hardwar':22 'led':3,10,19 'rgb':21 'rust':17 'smart':2,9 'smart-l':1,8 'use':7 'ws2812':14,20","created_at":"2026-06-16T16:22:43.607811+00:00","updated_at":"2026-06-16T16:22:43.607811+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/smart-leds-rs/smart-leds","github":"https://github.com/smart-leds-rs/smart-leds","docs":"https://docs.rs/smart-leds/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}