Dependencies:   mbed ThermistorPack

main.cpp

Committer:
shintamainjp
Date:
2010-10-13
Revision:
1:2fe81b604f93
Parent:
0:3e34ebd07d13

File content as of revision 1:2fe81b604f93:

/**
 * Test program for thermistor driver class (Version 0.0.1)
 *
 * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems)
 * http://shinta.main.jp/
 */
#include "mbed.h"

#include "ThermistorMCP9701.h"

DigitalOut myled(LED1);

ThermistorMCP9701 s1(p16);
ThermistorMCP9701 s2(p17);
ThermistorMCP9701 s3(p18);
ThermistorMCP9701 s4(p19);
ThermistorMCP9701 s5(p20);

int main() {
    while (1) {
        printf("%.1f %.1f %.1f %.1f %.1f\n", s1.read(), s2.read(), s3.read(), s4.read(), s5.read());
        wait_ms(500);
    }
}