old demo that i want to try in mbed studio
Dependencies: mbed SDFileSystem_Copy_of_mbed_version I2S
Revision 66:edf370edd21c, committed 2019-09-29
- Comitter:
- roryhand
- Date:
- Sun Sep 29 20:00:41 2019 +0000
- Branch:
- LargeFile_Tests
- Parent:
- 65:8b6a4e307941
- Child:
- 67:043fe0b81343
- Commit message:
- WIP - NotchUpIsr() and NotchDownIsr() copied from another commit.
Changed in this revision
| NotchingDemo.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;