{"repo":"DavJCosby/sled","free":true,"listed":false,"github":"https://github.com/DavJCosby/sled","clone":"git clone https://github.com/DavJCosby/sled.git","description":"Spatial LED: a library to help you get the coolest effects possible out of your bedroom LED strips.","language":"Rust","stars":114,"topics":["rust","rust-lang","led-strips","raspberry-pi"],"license":"Apache-2.0","category":"self-hosted-apps","readme_excerpt":"Spatial LED (Sled) Sled is an ergonomic rust library that maps out the shape of your LED strips in 2D space to help you create stunning lighting effects. What Sled does: - It exposes an API that lets you: - Compute colors depending on each LED's position, distance, direction, line segment, etc; - Output colors via a simple, contiguous iterator for your own usage; - Filter LEDs by spatial properties to predefine important sets and regions for faster computation; - Additionally, some tools are provided to help you build functional apps faster (you may opt-out via compiler features): - Driver - Pack draw/compute logic into a Driver to simplify the process of swapping between effects, or changing effect settings at runtime. - Scheduler - Lightweight tool to schedule redraws at a fixed rate, powered by spin sleep. What Sled does not do: - It does not interface directly with your GPIO pins to control your LED hardware. Each project will be different, so it's up to you to bring your own glue. Check out the Raspberry Pi example to get an idea what that might look like. - It does not allow you to represent your LEDs in 3D space. Could be a fun idea in the future, but it's just not planned for the time being. See the spatial led examples repository for examples of Sled in action! The Basics In absence of an official guide, this will serve as a basic introduction. From here, you can consult the docs to learn what else Sled can do. Setup To create a Sled struct, you need to create a conf","default_branch":null,"files":null,"tree":[],"storefront":"/r/DavJCosby","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DavJCosby/sled/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}