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
main.cpp
00001 #include "mbed.h" 00002 00003 #define INPUT_SCALAR (0.01f) 00004 00005 AnalogIn Ain(p20); 00006 AnalogOut Aout(p18); 00007 float i; 00008 float pi=3.14159; 00009 00010 int main() 00011 { 00012 while(1) { 00013 for (i=0; i<2; i=i+0.005) { 00014 Aout=0.5+0.5*sin(i*pi); 00015 wait(Ain*INPUT_SCALAR); 00016 00017 } 00018 } 00019 }
Generated on Tue Jul 12 2022 21:04:33 by
1.7.2