9#include "ColorPalette.h"
13typedef SDL_ThreadFunction TaskFunction_t;
14typedef int BaseType_t;
15typedef unsigned int UBaseType_t;
16typedef SDL_Thread *TaskHandle_t;
17typedef int TaskResult_t;
18#define APP_CPU_NUM (1)
20typedef void TaskResult_t;
24#define APP_CPU_NUM PRO_CPU_NUM
29typedef std::string String;
37 Expression expression;
41 float rightEyeOpenRatio_;
45 float leftEyeOpenRatio_;
58 BatteryIconStatus batteryIconStatus;
60 const lgfx::IFont *speechFont;
61 bool runing_in_x_task_;
69 Face *getFace()
const;
72 void setFace(
Face *face);
73 void init(
int colorDepth = 1);
75 Expression getExpression();
76 void setExpression(Expression exp);
78 void setBreath(
float f);
81 void setRightGaze(
float vertical,
float horizontal);
82 void getRightGaze(
float *vertical,
float *horizontal);
83 void setLeftGaze(
float vertical,
float horizontal);
84 void getLeftGaze(
float *vertical,
float *horizontal);
97 void getGaze(
float *vertical,
float *horizontal);
100 void setEyeOpenRatio(
float ratio);
101 void setRightEyeOpenRatio(
float ratio);
102 float getRightEyeOpenRatio();
103 void setLeftEyeOpenRatio(
float ratio);
104 float getLeftEyeOpenRatio();
105 void setIsAutoBlink(
bool b);
106 bool getIsAutoBlink();
108 void setMouthOpenRatio(
float ratio);
109 void setSpeechText(
const char *speechText);
110 void setSpeechFont(
const lgfx::IFont *speechFont);
111 void setRotation(
float radian);
112 void setPosition(
int top,
int left);
113 void setScale(
float scale);
114 void setColorDepth(
int color_depth = 1);
117 void start(
int colorDepth = 1);
119 void addTask(TaskFunction_t f,
const char *name,
120 const uint32_t stack_size = 2048, UBaseType_t priority = 4,
121 TaskHandle_t *
const task_handle = NULL,
122 const BaseType_t core_id = APP_CPU_NUM);
126 void updateFacialParameters();
127 void setBatteryIcon(
bool iconStatus);
128 void setBatteryStatus(
bool isCharging, int32_t batteryLevel);
void update()
update drawings in the display and facial parameters
Definition: Avatar.cpp:160
void getGaze(float *vertical, float *horizontal)
Get the Gaze of Avatar.
Definition: Avatar.cpp:340
Definition: ColorPalette.h:50