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
13namespace m5avatar {
14class 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
Definition: BoundingRect.h:10
Definition: Eye.h:15
Definition: Eyeblow.h:15
Definition: Face.h:18
Definition: Mouth.h:14
Definition: OledFace.h:14