mappings: add a map for albus the tree
This commit is contained in:
parent
c9496e3dc3
commit
d09c82c3fc
@ -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 {
|
pub fn from_json(stride_json: &[(u8, u8, u8, bool)]) -> Self {
|
||||||
let mut strides = [Stride::default(); STRIDE_NUM];
|
let mut strides = [Stride::default(); STRIDE_NUM];
|
||||||
let stride_count = stride_json.len();
|
let stride_count = stride_json.len();
|
||||||
|
@ -118,7 +118,7 @@ impl Board for Esp32Board {
|
|||||||
[0x4a, 0xca, 0x43, 0x59, 0x85, 0x58, 0x0, 0x0] => { // Albus the tree
|
[0x4a, 0xca, 0x43, 0x59, 0x85, 0x58, 0x0, 0x0] => { // Albus the tree
|
||||||
StrideOutput::new(
|
StrideOutput::new(
|
||||||
Pixbuf::new(),
|
Pixbuf::new(),
|
||||||
StrideMapping::new_jar(),
|
StrideMapping::new_albus(),
|
||||||
std::thread::spawn(move || { FastWs2812Esp32Rmt::new(rmt.channel0, pins.gpio5).unwrap() }).join().unwrap(),
|
std::thread::spawn(move || { FastWs2812Esp32Rmt::new(rmt.channel0, pins.gpio5).unwrap() }).join().unwrap(),
|
||||||
MAX_POWER_MW
|
MAX_POWER_MW
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user