ECE 4180 Lab 1 Part 9
Dependencies:
PinDetect
mbed
main.cpp
- Committer:
- abraha2d
- Date:
- 2018-10-09
- Revision:
- 0:b3e5504ca0ac
File content as of revision 0:b3e5504ca0ac:
#include "mbed.h"
AnalogOut ao(p18);
PwmOut led(LED2);
float t = 0.0f;
int main()
{
while(1) {
ao = sin(t) / 2.0f + 0.5f;
t += 0.31f;
}
}