mappings: add more chip IDs

This commit is contained in:
Torrie Fischer 2024-12-13 00:52:37 +01:00
parent 272bc49eaa
commit 9a749c40a1
2 changed files with 30 additions and 0 deletions

View File

@ -101,6 +101,12 @@ impl<const STRIDE_NUM: usize> StrideMapping<STRIDE_NUM> {
])
}
pub fn new_fairylights() -> Self {
Self::from_json(&[
(0, 0, 50, false)
])
}
pub fn new_jar() -> Self {
Self::from_json(&[
(0, 0, 17, false),

View File

@ -139,6 +139,30 @@ impl Board for Esp32Board {
MAX_POWER_MW
)
},
[0x4a, 0xca, 0x43, 0x59, 0x85, 0x58, 0x0, 0x0] => { // Albus the tree
StrideOutput::new(
Pixbuf::new(),
StrideMapping::new_jar(),
std::thread::spawn(move || { FastWs2812Esp32Rmt::new(peripherals.rmt.channel0, pins.gpio5).unwrap() }).join().unwrap(),
MAX_POWER_MW
)
},
[0x48, 0xca, 0x43, 0x59, 0x9d, 0x48, 0x0, 0x0] => { // kitchen cabinets
StrideOutput::new(
Pixbuf::new(),
StrideMapping::new_fairylights(),
std::thread::spawn(move || { FastWs2812Esp32Rmt::new(peripherals.rmt.channel0, pins.gpio5).unwrap() }).join().unwrap(),
MAX_POWER_MW
)
},
[0x48, 0xca, 0x43, 0x59, 0x9e, 0xdc, 0x0, 0x0] => { // front window
StrideOutput::new(
Pixbuf::new(),
StrideMapping::new_fairylights(),
std::thread::spawn(move || { FastWs2812Esp32Rmt::new(peripherals.rmt.channel0, pins.gpio5).unwrap() }).join().unwrap(),
MAX_POWER_MW
)
}
_ => {
StrideOutput::new(
Pixbuf::new(),