Guest User

Untitled

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