illuminance.

Dependencies:   mbed

main.cpp

Committer:
AkiraK
Date:
2012-10-11
Revision:
0:e7c1cda5f649

File content as of revision 0:e7c1cda5f649:

#include "mbed.h"

AnalogIn illu(p20);

int main() {
    while(true) {
        float lx = illu * 3.3 / 3 * 1000;
        printf("%5.2f\r\n", lx);
        wait(1.0);
    }
}