Guest User

Untitled

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