remove led2 (tiny led)
This commit is contained in:
parent
b0b77a1538
commit
17d6f156db
2 changed files with 46 additions and 45 deletions
|
|
@ -215,9 +215,9 @@ fn app_main(mut p: hal::Peripherals) -> ! {
|
|||
let led1_pin = PwmPin::new_ch1::<0>(p.PD2);
|
||||
let led1_ch = hal::timer::Channel::Ch1;
|
||||
|
||||
// LED2 output setup
|
||||
let led2_pin = PwmPin::new_ch2::<0>(p.PA1);
|
||||
let led2_ch = hal::timer::Channel::Ch2;
|
||||
// // LED2 output setup
|
||||
// let led2_pin = PwmPin::new_ch2::<0>(p.PA1);
|
||||
// let led2_ch = hal::timer::Channel::Ch2;
|
||||
|
||||
// DAC output setup
|
||||
let dac_pin = PwmPin::new_ch4::<0>(p.PC4);
|
||||
|
|
@ -227,7 +227,8 @@ fn app_main(mut p: hal::Peripherals) -> ! {
|
|||
let mut pwm = SimplePwm::new(
|
||||
p.TIM1,
|
||||
Some(led1_pin),
|
||||
Some(led2_pin),
|
||||
// Some(led2_pin),
|
||||
None,
|
||||
Some(led0_pin),
|
||||
Some(dac_pin),
|
||||
Hertz::khz(200),
|
||||
|
|
@ -236,7 +237,7 @@ fn app_main(mut p: hal::Peripherals) -> ! {
|
|||
|
||||
pwm.set_polarity(led0_ch, OutputPolarity::ActiveHigh);
|
||||
pwm.set_polarity(led1_ch, OutputPolarity::ActiveLow);
|
||||
pwm.set_polarity(led2_ch, OutputPolarity::ActiveLow);
|
||||
// pwm.set_polarity(led2_ch, OutputPolarity::ActiveLow);
|
||||
|
||||
let tick_rate_hz = 50000;
|
||||
|
||||
|
|
@ -296,7 +297,7 @@ fn app_main(mut p: hal::Peripherals) -> ! {
|
|||
usb_adc_timer_ms: 10000,
|
||||
led0_timer_ms: 100,
|
||||
led1_timer_ms: 100,
|
||||
led2_timer_ms: 100,
|
||||
// led2_timer_ms: 100,
|
||||
};
|
||||
|
||||
let app_config = Config {
|
||||
|
|
@ -320,7 +321,7 @@ fn app_main(mut p: hal::Peripherals) -> ! {
|
|||
let app_services = Services {
|
||||
led0: LedService::new(led0_ch),
|
||||
led1: LedService::new(led1_ch),
|
||||
led2: LedService::new(led2_ch),
|
||||
// led2: LedService::new(led2_ch),
|
||||
synth0: SynthesizerService::new(tick_rate_hz),
|
||||
sample_player,
|
||||
sequencer,
|
||||
|
|
@ -329,7 +330,7 @@ fn app_main(mut p: hal::Peripherals) -> ! {
|
|||
let app_sequences = Sequences {
|
||||
led0: BasicSequence::new(&LED0_SEQ),
|
||||
led1: BasicSequence::new(&LED0_SEQ),
|
||||
led2: BasicSequence::new(&LED0_SEQ),
|
||||
// led2: BasicSequence::new(&LED0_SEQ),
|
||||
audio: &SEQUENCE_LIST,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue