FTKL USER
/
app-board-AnalogOut
TINF
main.cpp
- Committer:
- ftkl_user
- Date:
- 2019-11-17
- Revision:
- 3:09e4f24b9492
- Parent:
- 2:acb0ba8a1395
- Child:
- 4:922cae216520
File content as of revision 3:09e4f24b9492:
#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())); printf("%f\n", i; } } }