For Hepta-Sat Lite

Dependencies:   mbed

Committer:
heptasat2021
Date:
Tue Nov 02 08:50:40 2021 +0000
Revision:
0:dbc8c629f749
For Hepta-Sat Lite

Who changed what in which revision?

UserRevisionLine numberNew contents of line
heptasat2021 0:dbc8c629f749 1 #include "mbed.h"
heptasat2021 0:dbc8c629f749 2
heptasat2021 0:dbc8c629f749 3 Serial pc(USBTX, USBRX, 9600);
heptasat2021 0:dbc8c629f749 4 AnalogIn temt6000(PA_3);
heptasat2021 0:dbc8c629f749 5
heptasat2021 0:dbc8c629f749 6 int main()
heptasat2021 0:dbc8c629f749 7 {
heptasat2021 0:dbc8c629f749 8 while(1)
heptasat2021 0:dbc8c629f749 9 {
heptasat2021 0:dbc8c629f749 10 float x = temt6000; //x range 0.0 ~ 1.0
heptasat2021 0:dbc8c629f749 11 pc.printf("%f\r\n", x);
heptasat2021 0:dbc8c629f749 12 wait(0.50);
heptasat2021 0:dbc8c629f749 13 }
heptasat2021 0:dbc8c629f749 14 }