Infrared Rays library
See http://developer.mbed.org/users/yasuyuki/notebook/IRmbed/
IR.h
- Committer:
- yasuyuki
- Date:
- 2014-06-26
- Revision:
- 0:c74b212c3cbf
- Child:
- 1:71ca050c4d05
File content as of revision 0:c74b212c3cbf:
//********************** // IR.h for mbed // // (C)Copyright 2014 All rights reserved by Y.Onodera // http://einstlab.web.fc2.com //********************** #ifndef IR_H_ #define IR_H_ #include "mbed.h" class IR{ public: IR (PinName irin); void init(); unsigned char CountHigh(); unsigned char CountLow(); void GetIR2(); void GetIR(); unsigned char buf[16]; // max 128bits unsigned char mode; // 0:NEC, 1:STD unsigned char bits; protected: DigitalIn _irin; }; #endif /* IR_H_ */