Guest User

Untitled

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