Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: amakusa mbed-dsp mbed shimabara ukifune unzen_nucleo_f746
Fork of skeleton_unzen_nucleo_f746 by
Revision 12:2b121255e2d1, committed 2017-01-29
- Comitter:
- shorie
- Date:
- Sun Jan 29 00:07:14 2017 +0000
- Parent:
- 11:7d8740437e6a
- Child:
- 13:b33cb5925113
- Commit message:
- Comment updated.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Jan 28 12:51:50 2017 +0000
+++ b/main.cpp Sun Jan 29 00:07:14 2017 +0000
@@ -49,6 +49,8 @@
// main loop. Signal processing is done in background.
while(1)
{ // place your foreground program here.
+
+ // get volume from UI panel, then apply it to signal processing.
process->set_volume( ukifune::get_volume(0) );
// sample usage of button switch detection
@@ -63,7 +65,7 @@
ukifune::toggle_led( ukifune::led2_1 ); // then toggle LED2_1
// holding detection demo
- if ( holding & (1 << ukifune::swm3 ) ) // is SWM2 switch holding?
+ if ( holding & (1 << ukifune::swm3 ) ) // is SWM3 switch holding?
ukifune::turn_led_on( ukifune::led3_1 ); // then turn LED3_1 on
else
ukifune::turn_led_off( ukifune::led3_1 ); // else off
