Makeblock-library-for-Arduino  V3.2.4
It's a library for arduino application developers
Classes | Macros
MeTemperature.h File Reference

Header for MeTemperature.cpp module. More...

#include <stdint.h>
#include <stdbool.h>
#include <Arduino.h>
#include "MeConfig.h"
#include "MeOneWire.h"
#include "MePort.h"

Go to the source code of this file.

Classes

class  MeTemperature
 Driver for temperature sensor device. More...
 

Macros

#define STARTCONVO   0x44
 
#define COPYSCRATCH   0x48
 
#define READSCRATCH   0xBE
 
#define WRITESCRATCH   0x4E
 
#define RECALLSCRATCH   0xB8
 
#define READPOWERSUPPLY   0xB4
 
#define ALARMSEARCH   0xEC
 

Detailed Description

Header for MeTemperature.cpp module.

Author
MakeBlock
Version
V1.0.0
Date
2015/09/08
Copyright
This software is Copyright (C), 2012-2016, MakeBlock. Use is subject to license
conditions. The main licensing options available are GPL V2 or Commercial:
Open Source Licensing GPL V2
This is the appropriate option if you want to share the source code of your
application with everyone you distribute it to, and you also want to give them
the right to share who uses it. If you wish to use this software under Open
Source Licensing, you must contribute all your source code to the open source
community in accordance with the GPL Version 2 when your application is
distributed. See http://www.gnu.org/copyleft/gpl.html
Description
This file is a drive for temperature sensor device, It supports temperature sensor 18B20 provided by the MakeBlock.
Method List:
  1. void MeTemperature::reset(uint8_t port)
  2. void MeTemperature::reset(uint8_t port, uint8_t slot)
  3. void MeTemperature::setpin(uint8_t port)
  4. float MeTemperature::temperature(void)
History:
<Author>         <Time>        <Version>        <Descr>
Mark Yan         2015/09/08     1.0.0            Rebuild the old lib.

Macro Definition Documentation

#define ALARMSEARCH   0xEC
#define COPYSCRATCH   0x48
#define READPOWERSUPPLY   0xB4
#define READSCRATCH   0xBE
#define RECALLSCRATCH   0xB8
#define STARTCONVO   0x44
#define WRITESCRATCH   0x4E