mappings: add a map for albus the tree

This commit is contained in:
Victoria Fischer 2024-12-14 14:44:53 +01:00
parent c9496e3dc3
commit d09c82c3fc
2 changed files with 7 additions and 1 deletions

View File

@ -169,6 +169,12 @@ impl<const STRIDE_NUM: usize> StrideMapping<STRIDE_NUM> {
])
}
pub fn new_albus() -> Self {
Self::from_json(&[
(0, 0, 50 * 3, false)
])
}
pub fn from_json(stride_json: &[(u8, u8, u8, bool)]) -> Self {
let mut strides = [Stride::default(); STRIDE_NUM];
let stride_count = stride_json.len();

View File

@ -118,7 +118,7 @@ impl Board for Esp32Board {
[0x4a, 0xca, 0x43, 0x59, 0x85, 0x58, 0x0, 0x0] => { // Albus the tree
StrideOutput::new(
Pixbuf::new(),
StrideMapping::new_jar(),
StrideMapping::new_albus(),
std::thread::spawn(move || { FastWs2812Esp32Rmt::new(rmt.channel0, pins.gpio5).unwrap() }).join().unwrap(),
MAX_POWER_MW
)