m5stack-avatar
Loading...
Searching...
No Matches
OledFace.h
1
// Copyright (c) Shinya Ishikawa. All rights reserved.
2
// Licensed under the MIT license. See LICENSE file in the project root for full
3
// license information.
4
5
#ifndef FACES_OLEDFACE_H_
6
#define FACES_OLEDFACE_H_
7
8
#include <M5Unified.h>
// TODO(meganetaaan): include only the Sprite function not a whole library
9
#include "../BoundingRect.h"
10
#include "../DrawContext.h"
11
#include "../Drawable.h"
12
13
namespace
m5avatar {
14
class
OledFace
:
public
Face
{
15
public
:
16
OledFace
()
17
:
Face
(
new
Mouth
(50, 90, 4, 60),
new
BoundingRect
(168, 163),
new
Eye
(8,
false
),
18
new
BoundingRect
(103, 80),
new
Eye
(8,
true
),
19
new
BoundingRect
(106, 240),
new
Eyeblow
(15, 2,
false
),
20
new
BoundingRect
(67, 96),
new
Eyeblow
(15, 2,
true
),
21
new
BoundingRect
(72, 230)) {}
22
};
23
24
}
// namespace m5avatar
25
26
#endif
// FACES_OLEDFACE_H_
27
m5avatar::BoundingRect
Definition:
BoundingRect.h:10
m5avatar::Eye
Definition:
Eye.h:15
m5avatar::Eyeblow
Definition:
Eyeblow.h:15
m5avatar::Face
Definition:
Face.h:18
m5avatar::Mouth
Definition:
Mouth.h:14
m5avatar::OledFace
Definition:
OledFace.h:14
src
faces
OledFace.h
Generated by
1.9.5