alpha
Login
or
Join now
brongan.com
/
pi-ambilight-receiver
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
pi-ambilight-receiver
/
src
/
at
main
1 folder
2 files
Brennan Tracy
Refactor receiver for graceful shutdown, zero-allocation writes, and safety
7w ago
784d7c99
bin
Refactor receiver for graceful shutdown, zero-allocation writes, and safety - **Zero-Allocation SPI Writes**: Moved the SPI payload buffer into the `Ws2812Spi` struct to reuse capacity, eliminating the inner-loop `Vec<u8>` heap allocation per packet. - **Graceful Shutdown**: Added a `ctrlc` signal handler and an `AtomicBool` for clean exits on SIGINT/SIGTERM. - **Non-blocking UDP**: Applied a 1-second read timeout to the UDP socket so the shutdown flag can be evaluated. - **Blackout on Exit**: Implemented a `.clear()` method to turn off all LEDs when the service terminates, preventing frozen frames. - **Robust Packet Parsing**: UDP payload is now truncated to the nearest multiple of 3 to prevent panics from malformed RGB datagrams. - **Cleanup**: Consolidated `Color` constructors, optimized the SPI reset padding length, and applied rustfmt.
1 month ago
lib.rs
Refactor receiver for graceful shutdown, zero-allocation writes, and safety - **Zero-Allocation SPI Writes**: Moved the SPI payload buffer into the `Ws2812Spi` struct to reuse capacity, eliminating the inner-loop `Vec<u8>` heap allocation per packet. - **Graceful Shutdown**: Added a `ctrlc` signal handler and an `AtomicBool` for clean exits on SIGINT/SIGTERM. - **Non-blocking UDP**: Applied a 1-second read timeout to the UDP socket so the shutdown flag can be evaluated. - **Blackout on Exit**: Implemented a `.clear()` method to turn off all LEDs when the service terminates, preventing frozen frames. - **Robust Packet Parsing**: UDP payload is now truncated to the nearest multiple of 3 to prevent panics from malformed RGB datagrams. - **Cleanup**: Consolidated `Color` constructors, optimized the SPI reset padding length, and applied rustfmt.
1 month ago
main.rs
Refactor receiver for graceful shutdown, zero-allocation writes, and safety - **Zero-Allocation SPI Writes**: Moved the SPI payload buffer into the `Ws2812Spi` struct to reuse capacity, eliminating the inner-loop `Vec<u8>` heap allocation per packet. - **Graceful Shutdown**: Added a `ctrlc` signal handler and an `AtomicBool` for clean exits on SIGINT/SIGTERM. - **Non-blocking UDP**: Applied a 1-second read timeout to the UDP socket so the shutdown flag can be evaluated. - **Blackout on Exit**: Implemented a `.clear()` method to turn off all LEDs when the service terminates, preventing frozen frames. - **Robust Packet Parsing**: UDP payload is now truncated to the nearest multiple of 3 to prevent panics from malformed RGB datagrams. - **Cleanup**: Consolidated `Color` constructors, optimized the SPI reset padding length, and applied rustfmt.
1 month ago