나중에 급하게 PID 알고리즘을 적용해 짜본 코드... 시간이 충분치 않아서 그냥 원래 있던 코드를 수정해서 하기로 했기에 버려진 코드지만, 교수님께 참고용으로 Publish를 했다.

Dependencies:   mbed Adafruit_GFX

Committer:
21400688
Date:
Sat Jun 15 20:39:39 2019 +0000
Revision:
0:c4c874d702f9
first commit

Who changed what in which revision?

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