Raul E Melo S
/
voltajeporserial
main.cpp
- Committer:
- raulmelo
- Date:
- 2012-02-14
- Revision:
- 0:3281e994e83b
File content as of revision 0:3281e994e83b:
#include "mbed.h" AnalogIn IrSensor(p20); Serial serial(USBTX, USBRX); int main() { float IrVoltage = 0; serial.baud(9600); while(1) { IrVoltage=IrSensor.read(); serial.printf("Voltage: %f\r\n", IrVoltage); wait(1); } }