Final Project로 실제 점검에 사용된 코드

Dependencies:   mbed Adafruit_GFX

Committer:
21400688
Date:
Sat Jun 15 20:52:15 2019 +0000
Revision:
0:22391cd705e2
vb

Who changed what in which revision?

UserRevisionLine numberNew contents of line
21400688 0:22391cd705e2 1 /**
21400688 0:22391cd705e2 2 * IR remote common class (Version 0.0.4)
21400688 0:22391cd705e2 3 *
21400688 0:22391cd705e2 4 * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems)
21400688 0:22391cd705e2 5 * http://shinta.main.jp/
21400688 0:22391cd705e2 6 */
21400688 0:22391cd705e2 7
21400688 0:22391cd705e2 8 #ifndef _REMOTE_IR_H_
21400688 0:22391cd705e2 9 #define _REMOTE_IR_H_
21400688 0:22391cd705e2 10
21400688 0:22391cd705e2 11 class RemoteIR {
21400688 0:22391cd705e2 12 public:
21400688 0:22391cd705e2 13
21400688 0:22391cd705e2 14 typedef enum {
21400688 0:22391cd705e2 15 UNKNOWN,
21400688 0:22391cd705e2 16 NEC,
21400688 0:22391cd705e2 17 NEC_REPEAT,
21400688 0:22391cd705e2 18 AEHA,
21400688 0:22391cd705e2 19 AEHA_REPEAT,
21400688 0:22391cd705e2 20 SONY
21400688 0:22391cd705e2 21 } Format;
21400688 0:22391cd705e2 22
21400688 0:22391cd705e2 23 static const int TUS_NEC = 562;
21400688 0:22391cd705e2 24 static const int TUS_AEHA = 425;
21400688 0:22391cd705e2 25 static const int TUS_SONY = 600;
21400688 0:22391cd705e2 26
21400688 0:22391cd705e2 27 private:
21400688 0:22391cd705e2 28 RemoteIR();
21400688 0:22391cd705e2 29 };
21400688 0:22391cd705e2 30
21400688 0:22391cd705e2 31 #endif