daily pastebin goal
85%
SHARE
TWEET

Untitled

a guest Nov 24th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Top