old demo that i want to try in mbed studio
Dependencies: mbed SDFileSystem_Copy_of_mbed_version I2S
Diff: NotchingDemo.cpp
- Branch:
- LargeFile_Tests
- Revision:
- 66:edf370edd21c
- Parent:
- 65:8b6a4e307941
- Child:
- 67:043fe0b81343
--- 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;