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: mbed SDFileSystem_Copy_of_mbed_version I2S
Diff: NotchingDemo.cpp
- Branch:
- LargeFile_Tests
- Revision:
- 66:edf370edd21c
- Parent:
- 65:8b6a4e307941
- Child:
- 67:043fe0b81343
diff -r 8b6a4e307941 -r edf370edd21c NotchingDemo.cpp
--- a/NotchingDemo.cpp Sun Sep 29 19:58:24 2019 +0000
+++ b/NotchingDemo.cpp Sun Sep 29 20:00:41 2019 +0000
@@ -240,6 +240,29 @@
}
};
+
+void NotchUpIsr()
+{
+ if(1 <= NotchingSet.Notch < 8) {
+
+ NotchingSet.Notch = NotchingSet.Notch + 1;
+ NotchingSet.NotchTransUp = NotchingSet.Notch + 7;
+ NotchingSet.NotchDirection = 1;
+ FadeDataInitialise(NotchFadeIn);
+ FadeDataInitialise(NotchFadeOut);
+ }
+}
+
+void NotchDownIsr()
+{
+ if(1 < NotchingSet.Notch <= 8) {
+ NotchingSet.Notch = NotchingSet.Notch - 1;
+ NotchingSet.NotchTransDown = NotchingSet.Notch + 15;;
+ NotchingSet.NotchDirection = 0;
+ FadeDataInitialise(NotchFadeIn);
+ FadeDataInitialise(NotchFadeOut);
+ }
+}
int OneOff = 0;
int notch_flag = 0;
int i = 0;