
For Hepta-Sat Lite
Diff: main.cpp
- Revision:
- 0:dbc8c629f749
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Nov 02 08:50:40 2021 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" + +Serial pc(USBTX, USBRX, 9600); +AnalogIn temt6000(PA_3); + +int main() +{ + while(1) + { + float x = temt6000; //x range 0.0 ~ 1.0 + pc.printf("%f\r\n", x); + wait(0.50); + } +}