etrobocon2019 feat.KatLab
ece30a9a007fff7d3ad48592c0d09a74643377bb
src
module
api
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
// フォントの設定
13
Controller::lcdSetFont
();
14
15
Controller::lcdFillRect
(0, row * lineHeight, lineHeight);
16
Controller::lcdDrawString
(msg, 0, row * lineHeight);
17
}
Display::print
static void print(int row, const char *format,...)
Definition:
Display.cpp:3
Display.h
Controller::lcdDrawString
static void lcdDrawString(const char *str, int x, int y)
Definition:
Controller.cpp:173
Controller::lcdSetFont
static void lcdSetFont()
Definition:
Controller.cpp:178
Controller::lcdFillRect
static void lcdFillRect(int x, int y, int h)
Definition:
Controller.cpp:168
構築:
1.8.13