Experimental implementation of the adaptive filter of "Interface" magazine in 2016-2017
Dependencies: amakusa mbed-dsp mbed shimabara ukifune unzen_nucleo_f746
Fork of skeleton_unzen_nucleo_f746 by
ハードウェアおよびソフトウェアはskelton_unzen_nucleo_f746を基本にしています。
Diff: main.cpp
- Revision:
- 18:b9b1116f8768
- Parent:
- 17:728ffc633179
- Child:
- 20:699e209fd19a
--- a/main.cpp Tue Jan 31 14:19:16 2017 +0000 +++ b/main.cpp Wed Feb 01 15:00:31 2017 +0000 @@ -43,14 +43,14 @@ { uint32_t pushing, releasing, holding; - // VFO style - wave_style style = triangle; + // VFO form + wave_form form = triangle; // start audio. Do not touch initialize_system(); process->set_vfo_frequency( 440 ); - process->set_vfo_wave_style( style ); + process->set_vfo_wave_form( form ); ukifune::turn_led_off( ukifune::led1_1 ); ukifune::turn_led_on( ukifune::led1_2 ); @@ -67,17 +67,17 @@ // pushing detection demo if ( pushing & (1 << ukifune::swm1 ) ) // is SWM1 switch pusshing down? - if ( style == triangle ) + if ( form == triangle ) { - style = square; - process->set_vfo_wave_style( style ); + form = square; + process->set_vfo_wave_form( form ); ukifune::turn_led_on( ukifune::led1_1 ); ukifune::turn_led_off( ukifune::led1_2 ); } else { - style = triangle; - process->set_vfo_wave_style( style ); + form = triangle; + process->set_vfo_wave_form( form ); ukifune::turn_led_off( ukifune::led1_1 ); ukifune::turn_led_on( ukifune::led1_2 ); }