StarBoard Orange - Example application No.1 GoogleChartLogger with StarBoard Orange

Dependencies:   EthernetNetIf mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SensorMCP9700.h Source File

SensorMCP9700.h

00001 /**
00002  * Sensor interface driver. (Version 0.0.1)
00003  *
00004  * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems)
00005  * http://shinta.main.jp/
00006  */
00007 
00008 #ifndef _SENSOR_MCP9700_H_
00009 #define _SENSOR_MCP9700_H_
00010 
00011 #include <mbed.h>
00012 
00013 #include "Sensor.h"
00014 
00015 class SensorMCP9700 : public Sensor {
00016 public:
00017     explicit SensorMCP9700(PinName pin);
00018     virtual ~SensorMCP9700();
00019     virtual double read();
00020 private:
00021     AnalogIn analogInput;
00022 };
00023 
00024 #endif