thermometer, hygrometer and barometer. Using VFD for display.
Dependencies: AM2321 LPS331_I2C mbed-rtos mbed EthernetInterface
main.cpp
- Committer:
- mia_0032
- Date:
- 2014-05-24
- Revision:
- 0:29eeb8eaefee
- Child:
- 1:9755b5a98ffb
File content as of revision 0:29eeb8eaefee:
#include "mbed.h" AnalogIn thermo_ic(p20); Serial pc(USBTX, USBRX); int main() { while(1) { //0.0V <= Vout <= 1.0V at 0C to 100C float temperature = thermo_ic.read()*3.3*100; pc.printf("temperature=%f\n", temperature); wait(1); } }