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-dsp
Fork of mbed-os-example-blinky by
main.cpp@56:dd569dfd421c, 2017-04-10 (annotated)
- Committer:
- KlaraBengtsson
- Date:
- Mon Apr 10 09:29:37 2017 +0000
- Revision:
- 56:dd569dfd421c
- Parent:
- 54:fd99c80c68da
Test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jonathan Austin |
0:2757d7abb7d9 | 1 | #include "mbed.h" |
deeza | 44:7f2c1e8d0761 | 2 | |
deeza | 54:fd99c80c68da | 3 | const int FFT_SIZE = 64; |
KlaraBengtsson | 56:dd569dfd421c | 4 | float samples[FFT_SIZE*2]; |
KlaraBengtsson | 56:dd569dfd421c | 5 | float magnitudes[FFT_SIZE]; |
deeza | 54:fd99c80c68da | 6 | |
deeza | 54:fd99c80c68da | 7 | void samplingBegin(){ |
deeza | 54:fd99c80c68da | 8 | } |
deeza | 54:fd99c80c68da | 9 | |
deeza | 54:fd99c80c68da | 10 | bool samplingIsDone() { |
deeza | 54:fd99c80c68da | 11 | return true; |
deeza | 54:fd99c80c68da | 12 | } |
deeza | 54:fd99c80c68da | 13 | |
Jonathan Austin |
1:846c97078558 | 14 | // main() runs in its own thread in the OS |
Jonathan Austin |
0:2757d7abb7d9 | 15 | int main() { |
deeza | 51:837137ab83ed | 16 | |
NicklasNp | 38:0eceb5feddc4 | 17 | } |