![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
For testing LED strobes
main.cpp
- Committer:
- bclaus
- Date:
- 2016-12-07
- Revision:
- 0:a8edaa1739e8
File content as of revision 0:a8edaa1739e8:
#include "mbed.h" AnalogIn vls(PTE22); AnalogIn current(A4); //DigitalOut led(LED_RED); Serial pc(USBTX, USBRX); DigitalOut myled(D0); int main() { pc.baud(115200); while (true) { ////strobe on myled = 0; wait(0.05); pc.printf("%f %f \r\n", 100-vls.read()*100.0f,(current.read()*3.28-1.64)/.09); //strobe off myled = 1; wait(0.95); } }