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

Header for for MeInfraredReceiver.cpp module. More...

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

Go to the source code of this file.

Classes

class  MeInfraredReceiver
 Driver for Me Infrared Receiver device. More...
 

Macros

#define IR_BUTTON_POWER   (0x45)
 
#define IR_BUTTON_A   (0x45)
 
#define IR_BUTTON_B   (0x46)
 
#define IR_BUTTON_MENU   (0x47)
 
#define IR_BUTTON_C   (0x47)
 
#define IR_BUTTON_TEST   (0x44)
 
#define IR_BUTTON_D   (0x44)
 
#define IR_BUTTON_PLUS   (0x40)
 
#define IR_BUTTON_UP   (0x40)
 
#define IR_BUTTON_RETURN   (0x43)
 
#define IR_BUTTON_E   (0x43)
 
#define IR_BUTTON_PREVIOUS   (0x07)
 
#define IR_BUTTON_LEFT   (0x07)
 
#define IR_BUTTON_PLAY   (0x15)
 
#define IR_BUTTON_SETTING   (0x15)
 
#define IR_BUTTON_NEXT   (0x09)
 
#define IR_BUTTON_RIGHT   (0x09)
 
#define IR_BUTTON_MINUS   (0x19)
 
#define IR_BUTTON_DOWN   (0x19)
 
#define IR_BUTTON_CLR   (0x0D)
 
#define IR_BUTTON_F   (0x0D)
 
#define IR_BUTTON_0   (0x16)
 
#define IR_BUTTON_1   (0x0C)
 
#define IR_BUTTON_2   (0x18)
 
#define IR_BUTTON_3   (0x5E)
 
#define IR_BUTTON_4   (0x08)
 
#define IR_BUTTON_5   (0x1C)
 
#define IR_BUTTON_6   (0x5A)
 
#define IR_BUTTON_7   (0x42)
 
#define IR_BUTTON_8   (0x52)
 
#define IR_BUTTON_9   (0x4A)
 

Detailed Description

Header for for MeInfraredReceiver.cpp module.

Author
MakeBlock
Version
V1.0.0
Date
2015/09/09
Description
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 Me Infrared Receiver, It supports Infrared Receiver V2.0 and V3.0 device provided by the MakeBlock company.

Method List:
  1. void MeInfraredReceiver::begin(void)
  2. int16_t MeInfraredReceiver::read(void)
  3. bool MeInfraredReceiver::buttonState(void)
  4. uint8_t MeInfraredReceiver::getCode(void)
  5. void MeInfraredReceiver::loop(void)
History:
<Author>         <Time>        <Version>        <Descr>
Mark Yan         2015/09/09     1.0.0            Rebuild the old lib.

Macro Definition Documentation

#define IR_BUTTON_0   (0x16)
#define IR_BUTTON_1   (0x0C)
#define IR_BUTTON_2   (0x18)
#define IR_BUTTON_3   (0x5E)
#define IR_BUTTON_4   (0x08)
#define IR_BUTTON_5   (0x1C)
#define IR_BUTTON_6   (0x5A)
#define IR_BUTTON_7   (0x42)
#define IR_BUTTON_8   (0x52)
#define IR_BUTTON_9   (0x4A)
#define IR_BUTTON_A   (0x45)
#define IR_BUTTON_B   (0x46)
#define IR_BUTTON_C   (0x47)
#define IR_BUTTON_CLR   (0x0D)
#define IR_BUTTON_D   (0x44)
#define IR_BUTTON_DOWN   (0x19)
#define IR_BUTTON_E   (0x43)
#define IR_BUTTON_F   (0x0D)
#define IR_BUTTON_LEFT   (0x07)
#define IR_BUTTON_MENU   (0x47)
#define IR_BUTTON_MINUS   (0x19)
#define IR_BUTTON_NEXT   (0x09)
#define IR_BUTTON_PLAY   (0x15)
#define IR_BUTTON_PLUS   (0x40)
#define IR_BUTTON_POWER   (0x45)
#define IR_BUTTON_PREVIOUS   (0x07)
#define IR_BUTTON_RETURN   (0x43)
#define IR_BUTTON_RIGHT   (0x09)
#define IR_BUTTON_SETTING   (0x15)
#define IR_BUTTON_TEST   (0x44)
#define IR_BUTTON_UP   (0x40)