Guest User

Untitled

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