![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
asdasdasd
Dependencies: mbed
main.cpp
- Committer:
- Ivan_Lazarov
- Date:
- 2015-06-23
- Revision:
- 0:de55248f2ed0
File content as of revision 0:de55248f2ed0:
#include "mbed.h" AnalogOut Aout(PTE30); DigitalOut Output(PTD6); float x; unsigned int i,j,out; int array[100]; int main() { x=0; i=0; out=0; for(i=0;i<99;i++) { Output=out; x=16*2047.0*(1+sin(2*3.142*i/50)); array[i]=x; } while(1){ i=0; for(i=0;i<99;i++){ j=array[i]; Aout.write_u16(j); } } }