for textbook v4.4

Dependencies:   mbed

Connection

Vcc → 3.0V ~ 5.1V (supply voltage)

GND → GND

SIG → p15 (mbed AnalogIn)

NC → Non connection

main.cpp

Committer:
mbedAustin
Date:
2014-09-05
Revision:
0:26a3a6edbb11
Child:
1:d583c567fcfe

File content as of revision 0:26a3a6edbb11:

#include "mbed.h"

AnalogIn sensorUV(A0);

int main() {
    float value;
    while (true) {
        value = sensorUV;
        printf("\rUV Value = %3.2f%%",value*100);
        wait(.1);
    }
}