03,11,20196

Dependencies:   mbed

Fork of mbed_blinky by Applied engineering Team

main.cpp

Committer:
Martic
Date:
2016-11-03
Revision:
0:72282788e800

File content as of revision 0:72282788e800:

#include "mbed.h"
AnalogOut Aout(p18);
float i;
int main()
{
    while(1) {
        for (i=0; i<1; i=i+0.01) {
            Aout=i;
            wait(0.001);
        }
    }

{
for (i=1; i>0; i=i-0.01) {
            Aout=i;
            wait(0.001);
}
}
}