etrobocon2019 feat.KatLab  ece30a9a007fff7d3ad48592c0d09a74643377bb
Display.cpp
[詳解]
1 #include "Display.h"
2 
3 void Display::print(int row, const char* format, ...) {
4  va_list arg;
5  char msg[32];
6 
7  va_start(arg, format);
8  vsprintf(msg, format, arg);
9  va_end(arg);
10 
11  const int lineHeight = 10;
12  // フォントの設定
14 
15  Controller::lcdFillRect(0, row * lineHeight, lineHeight);
16  Controller::lcdDrawString(msg, 0, row * lineHeight);
17 }
static void print(int row, const char *format,...)
Definition: Display.cpp:3
static void lcdDrawString(const char *str, int x, int y)
Definition: Controller.cpp:173
static void lcdSetFont()
Definition: Controller.cpp:178
static void lcdFillRect(int x, int y, int h)
Definition: Controller.cpp:168