For Hepta-Sat Lite

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 Serial pc(USBTX, USBRX, 9600);
00004 AnalogIn temt6000(PA_3);
00005 
00006 int main()
00007 {
00008   while(1)
00009   {
00010     float x = temt6000;    //x range 0.0 ~ 1.0
00011     pc.printf("%f\r\n", x);
00012     wait(0.50);
00013   }
00014 }