add support for multi-sequence
This commit is contained in:
parent
9328087e23
commit
48b836904b
2 changed files with 24 additions and 3 deletions
|
|
@ -50,6 +50,17 @@ pub static TEST_SEQ: [app::sequencer::SequenceEntry; 2] = [
|
|||
},
|
||||
];
|
||||
|
||||
pub static TEST_SEQ1: [app::sequencer::SequenceEntry; 2] = [
|
||||
SequenceEntry {
|
||||
frequency_hz: 440,
|
||||
duration_ms: 100,
|
||||
},
|
||||
SequenceEntry {
|
||||
frequency_hz: 220,
|
||||
duration_ms: 100,
|
||||
},
|
||||
];
|
||||
|
||||
#[derive(Debug)]
|
||||
struct Flag {
|
||||
value: bool,
|
||||
|
|
@ -288,6 +299,7 @@ fn app_main(mut p: hal::Peripherals) -> ! {
|
|||
led0: BasicSequence::new(&LED0_SEQ),
|
||||
led1: BasicSequence::new(&LED0_SEQ),
|
||||
led2: BasicSequence::new(&LED0_SEQ),
|
||||
audio: [&TEST_SEQ, &TEST_SEQ1],
|
||||
};
|
||||
|
||||
let app_interfaces = Interfaces { pwm_core };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue