Course project for LE484 at Thammasat University, class of 2016

sensorTask.cpp

Committer:
vsupacha
Date:
2017-05-08
Revision:
12:845639da2f03
Parent:
9:5b4959a735a1

File content as of revision 12:845639da2f03:

#include "mbed.h"
#include "platform.h"

AnalogIn analog_value(A0);

void sensorIn()
{
    float meas;

    while(1) {
        meas = analog_value.read();
        meas = meas * 3300;
        printf("measure = %.0f mV\n", meas);

    }
}