hepta
Dependencies: HEPTA_EPS HEPTA_SENSOR mbed
main.cpp
- Committer:
- RyusukeIwata
- Date:
- 19 months ago
- Revision:
- 30:4edd451d4631
- Parent:
- 28:ef6a121a4329
File content as of revision 30:4edd451d4631:
#include "mbed.h" #include "HEPTA_EPS.h" #include "HEPTA_SENSOR.h" RawSerial pc(USBTX,USBRX,9600); HEPTA_EPS eps(p16,p26); HEPTA_SENSOR sensor(p17, p28,p27,0x19,0x69,0x13, p13, p14,p25,p24); int main() { float temp; for (int i=0;i<10;i++) { sensor.temp_sense(&temp); pc.printf("temp = %f\r\n",temp); wait(1.0); } }