Guest User

Untitled

a guest
Nov 24th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #include "mbed.h"
  2. AnalogOut Aout(p18); //create an analog output on pin 18
  3. int main() {
  4. float i = 0;
  5. while(1) {
  6. for (i=0;i<1;i=i+0.1)
  7. {
  8. Aout=i;
  9. wait(0.0001);
  10.  
  11. }
  12. }
  13. }
Add Comment
Please, Sign In to add comment