...

Dependencies:   SmartRemote

Revision:
0:20c3ba3a78d0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/command.h	Tue Dec 08 03:09:02 2015 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include "IR.h"
+
+#include <string>
+
+class Command {
+public:
+  Command();
+  explicit Command(const std::string &name);
+  bool LearnCommand(Serial &pc);
+  bool TransmitCommand();
+
+private:
+  std::string command_name_;
+  uint8_t cmd_buf_[32];
+  RemoteIR::Format format_;
+  bool learned_command_;
+  int bitlength_;
+  static const int kmax_fail_count_ = 3;
+};
+
+