TINF

Dependencies:   mbed

main.cpp

Committer:
chris
Date:
2013-06-18
Revision:
1:754db1ff50f2
Parent:
0:1a38bf78f122
Child:
2:acb0ba8a1395

File content as of revision 1:754db1ff50f2:

#include "mbed.h"

AnalogOut Aout(p18);
AnalogIn pot1(p19);

int main()
{
    while(1) {
        for(float i=0.0; i<1.0; i+=0.1) {
            Aout = i;
            wait(0.00001+(0.0001*pot1.read()));
        }
    }
}