不韋 呂
/
UIT2_MovingAverage
Moving average for ST Nucleo F401RE. The number of average is controled by sw.
Revision 4:5a068d9ef168, committed 2014-11-14
- Comitter:
- MikamiUitOpen
- Date:
- Fri Nov 14 07:00:00 2014 +0000
- Parent:
- 3:8687b71453e0
- Commit message:
- 5
Changed in this revision
UIT_ADDA.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 8687b71453e0 -r 5a068d9ef168 UIT_ADDA.lib --- a/UIT_ADDA.lib Mon Nov 10 10:00:41 2014 +0000 +++ b/UIT_ADDA.lib Fri Nov 14 07:00:00 2014 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/MikamiUitOpen/code/UIT_ADDA/#6989472e84c4 +http://developer.mbed.org/users/MikamiUitOpen/code/UIT_ADDA/#c326d04aa6b8
diff -r 8687b71453e0 -r 5a068d9ef168 main.cpp --- a/main.cpp Mon Nov 10 10:00:41 2014 +0000 +++ b/main.cpp Fri Nov 14 07:00:00 2014 +0000 @@ -2,14 +2,13 @@ // 移動平均, 平均数:1, 2, 4, 8, 16, 32, 64:スイッチで選択 // Analog Input : A0 // Analog Output: MCP4922 using SPI -// 2014/10/29, Copyright (c) 2014 MIKAMI, Naoki +// 2014/11/12, Copyright (c) 2014 MIKAMI, Naoki //-------------------------------------------------------------- #include "mbed.h" #include "ADC_Base.hpp" // for ADC not using interrupt #include "DAC_MCP4922.hpp" // for DAC MCP4922 -#include "ScfClockTim3.hpp" // for clock supplied to SCF using namespace Mikami; @@ -24,7 +23,7 @@ int main() { - ScfClockTim3(500000); // cutoff frequency: 5 kHz + myDac_.ScfClockTim3(500000); // cutoff frequency: 5 kHz const int M = 64;