etrobocon2018 feat.KatLab  770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
 全て クラス 名前空間 ファイル 関数 変数 列挙型 列挙値 フレンド マクロ定義 ページ
UserInterface.h
[詳解]
1 
15 #ifndef __USER_INTERFACE__
16 #define __USER_INTERFACE__
17 
18 #include "Controller.h"
19 #include "FirstCode.h"
20 #include <string>
21 
26  public:
27  UserInterface() = default;
28  explicit UserInterface(Controller& controller_) : controller(controller_) {}
34  void inputFirstCode();
35  void setBrightness(int8_t& brightness, const char* str);
36  void setBrightnessWithColor(int16_t& brightness, const char* str);
43  int32_t getFirstCode();
44 
45  private:
46  Controller controller;
54  char* getCurrentDigitText(int8_t);
55 
59  FirstCode firstCode;
60 };
61 
62 #endif
走行体が走り出す前にユーザが入力するインターフェースを提供するクラス
Definition: UserInterface.h:25
UserInterface(Controller &controller_)
Definition: UserInterface.h:28
UserInterface()=default
void inputFirstCode()
void setBrightness(int8_t &brightness, const char *str)
初期位置コードクラス
Definition: FirstCode.h:14
void setBrightnessWithColor(int16_t &brightness, const char *str)
初期位置コードクラス
int32_t getFirstCode()