![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Moving average for ST Nucleo F401RE. The number of average is controled by sw.
Diff: main.cpp
- Revision:
- 2:bf617231c9bd
- Parent:
- 1:2b1ce47a1fd7
- Child:
- 4:5a068d9ef168
--- a/main.cpp Wed Oct 29 23:46:29 2014 +0000 +++ b/main.cpp Wed Oct 29 23:57:49 2014 +0000 @@ -49,6 +49,6 @@ xn[k] = xn[k-1]; //----------------------------------------------- - myDac_.Write(yn); // Write to DAC + myDac_.Write(yn); // Write to DAC } }