mirror of
https://github.com/78/xiaozhi-esp32.git
synced 2025-05-17 07:08:03 +08:00
add more fonts for version 1.0.0
This commit is contained in:
@ -4,10 +4,11 @@
|
||||
# CMakeLists in this exact order for cmake to work correctly
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
set(PROJECT_VER "0.9.9")
|
||||
set(PROJECT_VER "1.0.0")
|
||||
|
||||
# Add this line to disable the specific warning
|
||||
add_compile_options(-Wno-missing-field-initializers)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(xiaozhi)
|
||||
|
||||
|
@ -28,11 +28,6 @@ set(INCLUDE_DIRS "." "display" "audio_codecs" "protocols" "audio_processing")
|
||||
file(GLOB IOT_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/iot/things/*.cc)
|
||||
list(APPEND SOURCES ${IOT_SOURCES})
|
||||
|
||||
# 字体
|
||||
file(GLOB FONT_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/fonts/*.c)
|
||||
list(APPEND SOURCES ${FONT_SOURCES})
|
||||
list(APPEND INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/fonts)
|
||||
|
||||
# 添加板级公共文件
|
||||
file(GLOB BOARD_COMMON_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/boards/common/*.cc)
|
||||
list(APPEND SOURCES ${BOARD_COMMON_SOURCES})
|
||||
|
@ -38,6 +38,8 @@ choice BOARD_TYPE
|
||||
Board type. 开发板类型
|
||||
config BOARD_TYPE_BREAD_COMPACT_WIFI
|
||||
bool "面包板新版接线(WiFi)"
|
||||
config BOARD_TYPE_BREAD_COMPACT_WIFI_LCD
|
||||
bool "面包板新版接线(WiFi)+ LCD"
|
||||
config BOARD_TYPE_BREAD_COMPACT_ML307
|
||||
bool "面包板新版接线(ML307 AT)"
|
||||
config BOARD_TYPE_ESP_BOX_3
|
||||
@ -66,8 +68,6 @@ choice BOARD_TYPE
|
||||
bool "ESP-SparkBot开发板"
|
||||
config BOARD_TYPE_ESP32S3_Touch_AMOLED_1_8
|
||||
bool "Waveshare ESP32-S3-Touch-AMOLED-1.8"
|
||||
config BOARD_TYPE_BREAD_COMPACT_WIFI_LCD
|
||||
bool "面包板新版接线(WiFi)+ LCD"
|
||||
endchoice
|
||||
|
||||
choice DISPLAY_LCD_TYPE
|
||||
|
@ -24,6 +24,9 @@
|
||||
#define PI4IOE_REG_IO_OUT 0x05
|
||||
#define PI4IOE_REG_IO_PULLUP 0x0D
|
||||
|
||||
LV_FONT_DECLARE(font_puhui_16_4);
|
||||
LV_FONT_DECLARE(font_awesome_16_4);
|
||||
|
||||
class Pi4ioe : public I2cDevice {
|
||||
public:
|
||||
Pi4ioe(i2c_master_bus_handle_t i2c_bus, uint8_t addr) : I2cDevice(i2c_bus, addr) {
|
||||
@ -193,7 +196,8 @@ private:
|
||||
ESP_ERROR_CHECK(esp_lcd_panel_disp_on_off(panel_handle, true));
|
||||
|
||||
display_ = new LcdDisplay(io_handle, panel_handle, DISPLAY_BACKLIGHT_PIN, DISPLAY_BACKLIGHT_OUTPUT_INVERT,
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY);
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY,
|
||||
&font_puhui_16_4, &font_awesome_16_4);
|
||||
}
|
||||
|
||||
void InitializeButtons() {
|
||||
|
@ -13,6 +13,9 @@
|
||||
|
||||
#define TAG "CompactMl307Board"
|
||||
|
||||
LV_FONT_DECLARE(font_puhui_14_1);
|
||||
LV_FONT_DECLARE(font_awesome_14_1);
|
||||
|
||||
class CompactMl307Board : public Ml307Board {
|
||||
private:
|
||||
i2c_master_bus_handle_t display_i2c_bus_;
|
||||
@ -119,7 +122,8 @@ public:
|
||||
}
|
||||
|
||||
virtual Display* GetDisplay() override {
|
||||
static Ssd1306Display display(display_i2c_bus_, DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y);
|
||||
static Ssd1306Display display(display_i2c_bus_, DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y,
|
||||
&font_puhui_14_1, &font_awesome_14_1);
|
||||
return &display;
|
||||
}
|
||||
};
|
||||
|
@ -20,6 +20,9 @@
|
||||
|
||||
#define TAG "CompactWifiBoardLCD"
|
||||
|
||||
DECLARE_FONT(font_puhui_20_4);
|
||||
DECLARE_FONT(font_awesome_20_4);
|
||||
|
||||
class CompactWifiBoardLCD : public WifiBoard {
|
||||
private:
|
||||
|
||||
@ -72,7 +75,8 @@ private:
|
||||
esp_lcd_panel_swap_xy(panel, DISPLAY_SWAP_XY);
|
||||
esp_lcd_panel_mirror(panel, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y);
|
||||
display_ = new LcdDisplay(panel_io, panel, DISPLAY_BACKLIGHT_PIN, DISPLAY_BACKLIGHT_OUTPUT_INVERT,
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY);
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY,
|
||||
&font_puhui_20_4, &font_awesome_20_4);
|
||||
}
|
||||
|
||||
|
||||
|
@ -14,6 +14,9 @@
|
||||
|
||||
#define TAG "CompactWifiBoard"
|
||||
|
||||
LV_FONT_DECLARE(font_puhui_14_1);
|
||||
LV_FONT_DECLARE(font_awesome_14_1);
|
||||
|
||||
class CompactWifiBoard : public WifiBoard {
|
||||
private:
|
||||
i2c_master_bus_handle_t display_i2c_bus_;
|
||||
@ -124,7 +127,8 @@ public:
|
||||
}
|
||||
|
||||
virtual Display* GetDisplay() override {
|
||||
static Ssd1306Display display(display_i2c_bus_, DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y);
|
||||
static Ssd1306Display display(display_i2c_bus_, DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y,
|
||||
&font_puhui_14_1, &font_awesome_14_1);
|
||||
return &display;
|
||||
}
|
||||
};
|
||||
|
@ -16,6 +16,9 @@
|
||||
|
||||
#define TAG "EspBox3Board"
|
||||
|
||||
LV_FONT_DECLARE(font_puhui_20_4);
|
||||
LV_FONT_DECLARE(font_awesome_20_4);
|
||||
|
||||
// Init ili9341 by custom cmd
|
||||
static const ili9341_lcd_init_cmd_t vendor_specific_init[] = {
|
||||
{0xC8, (uint8_t []){0xFF, 0x93, 0x42}, 3, 0},
|
||||
@ -119,7 +122,8 @@ private:
|
||||
esp_lcd_panel_mirror(panel, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y);
|
||||
esp_lcd_panel_disp_on_off(panel, true);
|
||||
display_ = new LcdDisplay(panel_io, panel, DISPLAY_BACKLIGHT_PIN, DISPLAY_BACKLIGHT_OUTPUT_INVERT,
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY);
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY,
|
||||
&font_puhui_20_4, &font_awesome_20_4);
|
||||
}
|
||||
|
||||
// 物联网初始化,添加对 AI 可见设备
|
||||
|
@ -15,6 +15,9 @@
|
||||
|
||||
#define TAG "esp_sparkbot"
|
||||
|
||||
DECLARE_FONT(font_puhui_16_4);
|
||||
DECLARE_FONT(font_awesome_16_4);
|
||||
|
||||
class SparkBotEs8311AudioCodec : public Es8311AudioCodec {
|
||||
private:
|
||||
|
||||
@ -111,7 +114,8 @@ private:
|
||||
esp_lcd_panel_invert_color(panel, false);
|
||||
esp_lcd_panel_disp_on_off(panel, true);
|
||||
display_ = new LcdDisplay(panel_io, panel, DISPLAY_BACKLIGHT_PIN, DISPLAY_BACKLIGHT_OUTPUT_INVERT,
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY);
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY,
|
||||
&font_puhui_16_4, &font_awesome_16_4);
|
||||
}
|
||||
|
||||
// 物联网初始化,添加对 AI 可见设备
|
||||
|
@ -18,9 +18,8 @@
|
||||
|
||||
#define TAG "waveshare_amoled_1_8"
|
||||
|
||||
LV_FONT_DECLARE(font_puhui_14_1);
|
||||
LV_FONT_DECLARE(font_awesome_30_1);
|
||||
LV_FONT_DECLARE(font_awesome_14_1);
|
||||
LV_FONT_DECLARE(font_puhui_30_4);
|
||||
LV_FONT_DECLARE(font_awesome_30_4);
|
||||
|
||||
static const sh8601_lcd_init_cmd_t vendor_specific_init[] = {
|
||||
{0x11, (uint8_t[]){0x00}, 0, 120},
|
||||
@ -34,71 +33,34 @@ static const sh8601_lcd_init_cmd_t vendor_specific_init[] = {
|
||||
{0x51, (uint8_t[]){0xFF}, 1, 0},
|
||||
};
|
||||
|
||||
class SH8601Display : public LcdDisplay {
|
||||
private:
|
||||
lv_obj_t *user_messge_label_ = nullptr;
|
||||
lv_obj_t *ai_messge_label_ = nullptr;
|
||||
// 在waveshare_amoled_1_8类之前添加新的显示类
|
||||
class CustomLcdDisplay : public LcdDisplay {
|
||||
public:
|
||||
SH8601Display(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_handle_t panel,
|
||||
gpio_num_t backlight_pin, bool backlight_output_invert,
|
||||
int width, int height, int offset_x, int offset_y, bool mirror_x, bool mirror_y, bool swap_xy)
|
||||
: LcdDisplay(panel_io, panel, backlight_pin, backlight_output_invert, width, height, offset_x, offset_y, mirror_x, mirror_y, swap_xy) {}
|
||||
|
||||
void SetChatMessage(const std::string &role, const std::string &content) override {
|
||||
if (ai_messge_label_== nullptr || user_messge_label_== nullptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
DisplayLockGuard lock(this);
|
||||
ESP_LOGI(TAG, "role:%s", role.c_str());
|
||||
if(role == "assistant") {
|
||||
std::string new_content = "AI: " + content;
|
||||
lv_label_set_text(ai_messge_label_, new_content.c_str());
|
||||
} else if(role == "user") {
|
||||
std::string new_content = "User: " + content;
|
||||
lv_label_set_text(user_messge_label_, new_content.c_str());
|
||||
} else{
|
||||
lv_label_set_text(ai_messge_label_, "AI: ");
|
||||
lv_label_set_text(user_messge_label_, "User: ");
|
||||
}
|
||||
}
|
||||
|
||||
void SetupUI() override {
|
||||
DisplayLockGuard lock(this);
|
||||
|
||||
lv_obj_del(chat_message_label_);
|
||||
|
||||
lv_obj_set_flex_align(content_, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_SPACE_EVENLY); // 子对象居中对齐,等距分布
|
||||
|
||||
lv_obj_set_style_text_font(emotion_label_, &font_awesome_30_1, 0);
|
||||
lv_label_set_text(emotion_label_, FONT_AWESOME_AI_CHIP);
|
||||
lv_obj_align(emotion_label_, LV_ALIGN_TOP_MID, 0, -10); // 左侧居中,向右偏移10个单位
|
||||
|
||||
static lv_style_t style_msg;
|
||||
lv_style_init(&style_msg);
|
||||
lv_style_set_width(&style_msg, LV_HOR_RES - 25);
|
||||
|
||||
user_messge_label_ = lv_label_create(content_);
|
||||
lv_obj_set_style_text_font(user_messge_label_, &font_puhui_14_1, 0);
|
||||
lv_label_set_text(user_messge_label_, "User: ");
|
||||
lv_obj_add_style(user_messge_label_, &style_msg, 0);
|
||||
lv_obj_align(user_messge_label_, LV_ALIGN_TOP_LEFT, 2, 25);
|
||||
|
||||
ai_messge_label_ = lv_label_create(content_);
|
||||
lv_obj_set_style_text_font(ai_messge_label_, &font_puhui_14_1, 0);
|
||||
lv_label_set_text(ai_messge_label_, "AI: ");
|
||||
lv_obj_add_style(ai_messge_label_, &style_msg, 0);
|
||||
lv_obj_align(ai_messge_label_, LV_ALIGN_TOP_LEFT, 2, 77);
|
||||
CustomLcdDisplay(esp_lcd_panel_io_handle_t io_handle,
|
||||
esp_lcd_panel_handle_t panel_handle,
|
||||
gpio_num_t backlight_pin,
|
||||
bool backlight_output_invert,
|
||||
int width,
|
||||
int height,
|
||||
int offset_x,
|
||||
int offset_y,
|
||||
bool mirror_x,
|
||||
bool mirror_y,
|
||||
bool swap_xy)
|
||||
: LcdDisplay(io_handle, panel_handle, backlight_pin, backlight_output_invert,
|
||||
width, height, offset_x, offset_y, mirror_x, mirror_y, swap_xy,
|
||||
&font_puhui_30_4, &font_awesome_30_4) {
|
||||
// 由于屏幕是带圆角的,所以状态栏需要增加左右内边距
|
||||
lv_obj_set_style_pad_left(status_bar_, LV_HOR_RES * 0.1, 0);
|
||||
lv_obj_set_style_pad_right(status_bar_, LV_HOR_RES * 0.1, 0);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
class waveshare_amoled_1_8 : public WifiBoard {
|
||||
private:
|
||||
i2c_master_bus_handle_t codec_i2c_bus_;
|
||||
Button boot_button_;
|
||||
SH8601Display* display_;
|
||||
LcdDisplay* display_;
|
||||
|
||||
void InitializeCodecI2c() {
|
||||
// Initialize I2C peripheral
|
||||
@ -178,18 +140,12 @@ private:
|
||||
|
||||
esp_lcd_panel_reset(panel);
|
||||
esp_lcd_panel_init(panel);
|
||||
esp_lcd_panel_invert_color(panel, true);
|
||||
esp_lcd_panel_invert_color(panel, false);
|
||||
esp_lcd_panel_swap_xy(panel, DISPLAY_SWAP_XY);
|
||||
esp_lcd_panel_mirror(panel, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y);
|
||||
esp_lcd_panel_disp_on_off(panel, true);
|
||||
display_ = new SH8601Display(panel_io, panel, DISPLAY_BACKLIGHT_PIN, DISPLAY_BACKLIGHT_OUTPUT_INVERT,
|
||||
display_ = new CustomLcdDisplay(panel_io, panel, DISPLAY_BACKLIGHT_PIN, DISPLAY_BACKLIGHT_OUTPUT_INVERT,
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY);
|
||||
if (display_) {
|
||||
display_->SetupUI();
|
||||
} else {
|
||||
ESP_LOGE(TAG, "Display is not initialized!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// 物联网初始化,添加对 AI 可见设备
|
||||
|
@ -16,6 +16,9 @@
|
||||
|
||||
#define TAG "esp32s3_korvo2_v3"
|
||||
|
||||
DECLARE_FONT(font_puhui_20_4);
|
||||
DECLARE_FONT(font_awesome_20_4);
|
||||
|
||||
class esp32s3_korvo2_v3_board : public WifiBoard
|
||||
{
|
||||
private:
|
||||
@ -95,7 +98,8 @@ private:
|
||||
ESP_ERROR_CHECK(esp_lcd_panel_invert_color(panel, true));
|
||||
|
||||
display_ = new LcdDisplay(panel_io, panel, DISPLAY_BACKLIGHT_PIN, DISPLAY_BACKLIGHT_OUTPUT_INVERT,
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY);
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY,
|
||||
&font_puhui_20_4, &font_awesome_20_4);
|
||||
}
|
||||
|
||||
// 物联网初始化,添加对 AI 可见设备
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "button.h"
|
||||
#include "config.h"
|
||||
#include "iot/thing_manager.h"
|
||||
#include "led_strip/single_led.h"
|
||||
#include "led/single_led.h"
|
||||
|
||||
#include <esp_log.h>
|
||||
#include <esp_spiffs.h>
|
||||
@ -14,6 +14,9 @@
|
||||
|
||||
#define TAG "KevinBoxBoard"
|
||||
|
||||
DECLARE_FONT(font_puhui_14_1);
|
||||
DECLARE_FONT(font_awesome_14_1);
|
||||
|
||||
class KevinBoxBoard : public Ml307Board {
|
||||
private:
|
||||
i2c_master_bus_handle_t display_i2c_bus_;
|
||||
@ -81,8 +84,11 @@ private:
|
||||
}
|
||||
|
||||
void InitializeButtons() {
|
||||
boot_button_.OnClick([this]() {
|
||||
Application::GetInstance().ToggleChatState();
|
||||
boot_button_.OnPressDown([this]() {
|
||||
Application::GetInstance().StartListening();
|
||||
});
|
||||
boot_button_.OnPressUp([this]() {
|
||||
Application::GetInstance().StopListening();
|
||||
});
|
||||
|
||||
volume_up_button_.OnClick([this]() {
|
||||
@ -149,7 +155,8 @@ public:
|
||||
}
|
||||
|
||||
virtual Display* GetDisplay() override {
|
||||
static Ssd1306Display display(display_i2c_bus_, DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y);
|
||||
static Ssd1306Display display(display_i2c_bus_, DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y,
|
||||
&font_puhui_14_1, &font_awesome_14_1);
|
||||
return &display;
|
||||
}
|
||||
};
|
||||
|
@ -16,6 +16,9 @@
|
||||
|
||||
#define TAG "KevinBoxBoard"
|
||||
|
||||
DECLARE_FONT(font_puhui_14_1);
|
||||
DECLARE_FONT(font_awesome_14_1);
|
||||
|
||||
class KevinBoxBoard : public Ml307Board {
|
||||
private:
|
||||
i2c_master_bus_handle_t display_i2c_bus_;
|
||||
@ -193,7 +196,8 @@ public:
|
||||
}
|
||||
|
||||
virtual Display* GetDisplay() override {
|
||||
static Ssd1306Display display(display_i2c_bus_, DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y);
|
||||
static Ssd1306Display display(display_i2c_bus_, DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y,
|
||||
&font_puhui_14_1, &font_awesome_14_1);
|
||||
return &display;
|
||||
}
|
||||
|
||||
|
@ -15,6 +15,9 @@
|
||||
|
||||
#define TAG "LichuangC3DevBoard"
|
||||
|
||||
LV_FONT_DECLARE(font_puhui_20_4);
|
||||
LV_FONT_DECLARE(font_awesome_20_4);
|
||||
|
||||
class LichuangC3DevBoard : public WifiBoard {
|
||||
private:
|
||||
i2c_master_bus_handle_t codec_i2c_bus_;
|
||||
@ -95,7 +98,8 @@ private:
|
||||
esp_lcd_panel_swap_xy(panel, DISPLAY_SWAP_XY);
|
||||
esp_lcd_panel_mirror(panel, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y);
|
||||
display_ = new LcdDisplay(panel_io, panel, DISPLAY_BACKLIGHT_PIN, DISPLAY_BACKLIGHT_OUTPUT_INVERT,
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY);
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY,
|
||||
&font_puhui_20_4, &font_awesome_20_4);
|
||||
}
|
||||
|
||||
// 物联网初始化,添加对 AI 可见设备
|
||||
|
@ -15,6 +15,8 @@
|
||||
|
||||
#define TAG "LichuangDevBoard"
|
||||
|
||||
LV_FONT_DECLARE(font_puhui_20_4);
|
||||
LV_FONT_DECLARE(font_awesome_20_4);
|
||||
|
||||
class Pca9557 : public I2cDevice {
|
||||
public:
|
||||
@ -117,7 +119,8 @@ private:
|
||||
esp_lcd_panel_swap_xy(panel, DISPLAY_SWAP_XY);
|
||||
esp_lcd_panel_mirror(panel, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y);
|
||||
display_ = new LcdDisplay(panel_io, panel, DISPLAY_BACKLIGHT_PIN, DISPLAY_BACKLIGHT_OUTPUT_INVERT,
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY);
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY,
|
||||
&font_puhui_20_4, &font_awesome_20_4);
|
||||
}
|
||||
|
||||
// 物联网初始化,添加对 AI 可见设备
|
||||
|
@ -16,6 +16,9 @@
|
||||
|
||||
#define TAG "M5StackCoreS3Board"
|
||||
|
||||
LV_FONT_DECLARE(font_puhui_20_4);
|
||||
LV_FONT_DECLARE(font_awesome_20_4);
|
||||
|
||||
class Axp2101 : public I2cDevice {
|
||||
public:
|
||||
// Power Init
|
||||
@ -227,7 +230,7 @@ private:
|
||||
ESP_LOGD(TAG, "Install LCD driver");
|
||||
esp_lcd_panel_dev_config_t panel_config = {};
|
||||
panel_config.reset_gpio_num = GPIO_NUM_NC;
|
||||
panel_config.rgb_ele_order = LCD_RGB_ELEMENT_ORDER_RGB;
|
||||
panel_config.rgb_ele_order = LCD_RGB_ELEMENT_ORDER_BGR;
|
||||
panel_config.bits_per_pixel = 16;
|
||||
ESP_ERROR_CHECK(esp_lcd_new_panel_ili9341(panel_io, &panel_config, &panel));
|
||||
|
||||
@ -240,7 +243,8 @@ private:
|
||||
esp_lcd_panel_mirror(panel, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y);
|
||||
|
||||
display_ = new LcdDisplay(panel_io, panel, DISPLAY_BACKLIGHT_PIN, DISPLAY_BACKLIGHT_OUTPUT_INVERT,
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY);
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY,
|
||||
&font_puhui_20_4, &font_awesome_20_4);
|
||||
}
|
||||
|
||||
void InitializeButtons() {
|
||||
|
@ -14,6 +14,9 @@
|
||||
#include "esp_lcd_nv3023.h"
|
||||
#define TAG "magiclick_2p4"
|
||||
|
||||
DECLARE_FONT(font_puhui_16_4);
|
||||
DECLARE_FONT(font_awesome_16_4);
|
||||
|
||||
class magiclick_2p4 : public WifiBoard {
|
||||
private:
|
||||
i2c_master_bus_handle_t codec_i2c_bus_;
|
||||
@ -102,7 +105,8 @@ private:
|
||||
esp_lcd_panel_mirror(panel, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y);
|
||||
ESP_ERROR_CHECK(esp_lcd_panel_disp_on_off(panel, true));
|
||||
display_ = new LcdDisplay(panel_io, panel, DISPLAY_BACKLIGHT_PIN, DISPLAY_BACKLIGHT_OUTPUT_INVERT,
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY);
|
||||
DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_OFFSET_X, DISPLAY_OFFSET_Y, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y, DISPLAY_SWAP_XY,
|
||||
&font_puhui_16_4, &font_awesome_16_4);
|
||||
}
|
||||
|
||||
// 物联网初始化,添加对 AI 可见设备
|
||||
|
@ -14,6 +14,9 @@
|
||||
|
||||
#define TAG "XminiC3Board"
|
||||
|
||||
DECLARE_FONT(font_puhui_14_1);
|
||||
DECLARE_FONT(font_awesome_14_1);
|
||||
|
||||
class XminiC3Board : public WifiBoard {
|
||||
private:
|
||||
i2c_master_bus_handle_t codec_i2c_bus_;
|
||||
@ -74,7 +77,8 @@ public:
|
||||
}
|
||||
|
||||
virtual Display* GetDisplay() override {
|
||||
static Ssd1306Display display(codec_i2c_bus_, DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y);
|
||||
static Ssd1306Display display(codec_i2c_bus_, DISPLAY_WIDTH, DISPLAY_HEIGHT, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y,
|
||||
&font_puhui_14_1, &font_awesome_14_1);
|
||||
return &display;
|
||||
}
|
||||
|
||||
|
@ -5,21 +5,20 @@
|
||||
#include <esp_err.h>
|
||||
#include <driver/ledc.h>
|
||||
#include <vector>
|
||||
#include "emoji_font.h"
|
||||
#include <emoji_font.h>
|
||||
#include "board.h"
|
||||
|
||||
#define TAG "LcdDisplay"
|
||||
#define LCD_LEDC_CH LEDC_CHANNEL_0
|
||||
|
||||
#define LCD_LVGL_TICK_PERIOD_MS 2
|
||||
#define LCD_LVGL_TASK_MAX_DELAY_MS 20
|
||||
#define LCD_LVGL_TASK_MAX_DELAY_MS 60
|
||||
#define LCD_LVGL_TASK_MIN_DELAY_MS 1
|
||||
#define LCD_LVGL_TASK_STACK_SIZE (4 * 1024)
|
||||
#define LCD_LVGL_TASK_PRIORITY 10
|
||||
#define LCD_LVGL_TASK_PRIORITY 1
|
||||
|
||||
LV_FONT_DECLARE(font_awesome_30_4);
|
||||
|
||||
LV_FONT_DECLARE(font_puhui_14_1);
|
||||
LV_FONT_DECLARE(font_awesome_30_1);
|
||||
LV_FONT_DECLARE(font_awesome_14_1);
|
||||
|
||||
static lv_disp_drv_t disp_drv;
|
||||
static void lcd_lvgl_flush_cb(lv_disp_drv_t *drv, const lv_area_t *area, lv_color_t *color_map)
|
||||
@ -90,9 +89,11 @@ void LcdDisplay::LvglTask() {
|
||||
|
||||
LcdDisplay::LcdDisplay(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_handle_t panel,
|
||||
gpio_num_t backlight_pin, bool backlight_output_invert,
|
||||
int width, int height, int offset_x, int offset_y, bool mirror_x, bool mirror_y, bool swap_xy)
|
||||
int width, int height, int offset_x, int offset_y, bool mirror_x, bool mirror_y, bool swap_xy,
|
||||
const lv_font_t* text_font, const lv_font_t* icon_font)
|
||||
: panel_io_(panel_io), panel_(panel), backlight_pin_(backlight_pin), backlight_output_invert_(backlight_output_invert),
|
||||
mirror_x_(mirror_x), mirror_y_(mirror_y), swap_xy_(swap_xy) {
|
||||
mirror_x_(mirror_x), mirror_y_(mirror_y), swap_xy_(swap_xy),
|
||||
text_font_(text_font), icon_font_(icon_font) {
|
||||
width_ = width;
|
||||
height_ = height;
|
||||
offset_x_ = offset_x;
|
||||
@ -252,7 +253,7 @@ void LcdDisplay::SetupUI() {
|
||||
DisplayLockGuard lock(this);
|
||||
|
||||
auto screen = lv_disp_get_scr_act(lv_disp_get_default());
|
||||
lv_obj_set_style_text_font(screen, &font_puhui_14_1, 0);
|
||||
lv_obj_set_style_text_font(screen, text_font_, 0);
|
||||
lv_obj_set_style_text_color(screen, lv_color_black(), 0);
|
||||
|
||||
/* Container */
|
||||
@ -265,7 +266,7 @@ void LcdDisplay::SetupUI() {
|
||||
|
||||
/* Status bar */
|
||||
status_bar_ = lv_obj_create(container_);
|
||||
lv_obj_set_size(status_bar_, LV_HOR_RES, 18);
|
||||
lv_obj_set_size(status_bar_, LV_HOR_RES, text_font_->line_height);
|
||||
lv_obj_set_style_radius(status_bar_, 0, 0);
|
||||
|
||||
/* Content */
|
||||
@ -279,13 +280,13 @@ void LcdDisplay::SetupUI() {
|
||||
lv_obj_set_flex_align(content_, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_SPACE_EVENLY); // 子对象居中对齐,等距分布
|
||||
|
||||
emotion_label_ = lv_label_create(content_);
|
||||
lv_obj_set_style_text_font(emotion_label_, &font_awesome_30_1, 0);
|
||||
lv_obj_set_style_text_font(emotion_label_, &font_awesome_30_4, 0);
|
||||
lv_label_set_text(emotion_label_, FONT_AWESOME_AI_CHIP);
|
||||
// lv_obj_center(emotion_label_);
|
||||
|
||||
chat_message_label_ = lv_label_create(content_);
|
||||
lv_label_set_text(chat_message_label_, "");
|
||||
lv_obj_set_width(chat_message_label_, LV_HOR_RES * 0.8); // 限制宽度为屏幕宽度的 80%
|
||||
lv_obj_set_width(chat_message_label_, LV_HOR_RES * 0.9); // 限制宽度为屏幕宽度的 90%
|
||||
lv_label_set_long_mode(chat_message_label_, LV_LABEL_LONG_WRAP); // 设置为自动换行模式
|
||||
lv_obj_set_style_text_align(chat_message_label_, LV_TEXT_ALIGN_CENTER, 0); // 设置文本居中对齐
|
||||
|
||||
@ -294,10 +295,12 @@ void LcdDisplay::SetupUI() {
|
||||
lv_obj_set_style_pad_all(status_bar_, 0, 0);
|
||||
lv_obj_set_style_border_width(status_bar_, 0, 0);
|
||||
lv_obj_set_style_pad_column(status_bar_, 0, 0);
|
||||
lv_obj_set_style_pad_left(status_bar_, 2, 0);
|
||||
lv_obj_set_style_pad_right(status_bar_, 2, 0);
|
||||
|
||||
network_label_ = lv_label_create(status_bar_);
|
||||
lv_label_set_text(network_label_, "");
|
||||
lv_obj_set_style_text_font(network_label_, &font_awesome_14_1, 0);
|
||||
lv_obj_set_style_text_font(network_label_, icon_font_, 0);
|
||||
|
||||
notification_label_ = lv_label_create(status_bar_);
|
||||
lv_obj_set_flex_grow(notification_label_, 1);
|
||||
@ -313,11 +316,11 @@ void LcdDisplay::SetupUI() {
|
||||
|
||||
mute_label_ = lv_label_create(status_bar_);
|
||||
lv_label_set_text(mute_label_, "");
|
||||
lv_obj_set_style_text_font(mute_label_, &font_awesome_14_1, 0);
|
||||
lv_obj_set_style_text_font(mute_label_, icon_font_, 0);
|
||||
|
||||
battery_label_ = lv_label_create(status_bar_);
|
||||
lv_label_set_text(battery_label_, "");
|
||||
lv_obj_set_style_text_font(battery_label_, &font_awesome_14_1, 0);
|
||||
lv_obj_set_style_text_font(battery_label_, icon_font_, 0);
|
||||
}
|
||||
|
||||
void LcdDisplay::SetChatMessage(const std::string &role, const std::string &content) {
|
||||
|
@ -29,6 +29,8 @@ protected:
|
||||
lv_obj_t* container_ = nullptr;
|
||||
lv_obj_t* side_bar_ = nullptr;
|
||||
lv_obj_t* chat_message_label_ = nullptr;
|
||||
const lv_font_t* text_font_ = nullptr;
|
||||
const lv_font_t* icon_font_ = nullptr;
|
||||
|
||||
void InitializeBacklight(gpio_num_t backlight_pin);
|
||||
void SetBacklight(uint8_t brightness);
|
||||
@ -41,7 +43,8 @@ protected:
|
||||
public:
|
||||
LcdDisplay(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_handle_t panel,
|
||||
gpio_num_t backlight_pin, bool backlight_output_invert,
|
||||
int width, int height, int offset_x, int offset_y, bool mirror_x, bool mirror_y, bool swap_xy);
|
||||
int width, int height, int offset_x, int offset_y, bool mirror_x, bool mirror_y, bool swap_xy,
|
||||
const lv_font_t* text_font, const lv_font_t* icon_font);
|
||||
~LcdDisplay();
|
||||
|
||||
void SetChatMessage(const std::string &role, const std::string &content) override;
|
||||
|
@ -9,12 +9,11 @@
|
||||
|
||||
#define TAG "Ssd1306Display"
|
||||
|
||||
LV_FONT_DECLARE(font_puhui_14_1);
|
||||
LV_FONT_DECLARE(font_awesome_30_1);
|
||||
LV_FONT_DECLARE(font_awesome_14_1);
|
||||
|
||||
Ssd1306Display::Ssd1306Display(void* i2c_master_handle, int width, int height, bool mirror_x, bool mirror_y)
|
||||
: mirror_x_(mirror_x), mirror_y_(mirror_y) {
|
||||
Ssd1306Display::Ssd1306Display(void* i2c_master_handle, int width, int height, bool mirror_x, bool mirror_y,
|
||||
const lv_font_t* text_font, const lv_font_t* icon_font)
|
||||
: mirror_x_(mirror_x), mirror_y_(mirror_y), text_font_(text_font), icon_font_(icon_font) {
|
||||
width_ = width;
|
||||
height_ = height;
|
||||
|
||||
@ -138,7 +137,7 @@ void Ssd1306Display::SetupUI_128x64() {
|
||||
DisplayLockGuard lock(this);
|
||||
|
||||
auto screen = lv_disp_get_scr_act(disp_);
|
||||
lv_obj_set_style_text_font(screen, &font_puhui_14_1, 0);
|
||||
lv_obj_set_style_text_font(screen, text_font_, 0);
|
||||
lv_obj_set_style_text_color(screen, lv_color_black(), 0);
|
||||
|
||||
/* Container */
|
||||
@ -174,7 +173,7 @@ void Ssd1306Display::SetupUI_128x64() {
|
||||
|
||||
network_label_ = lv_label_create(status_bar_);
|
||||
lv_label_set_text(network_label_, "");
|
||||
lv_obj_set_style_text_font(network_label_, &font_awesome_14_1, 0);
|
||||
lv_obj_set_style_text_font(network_label_, icon_font_, 0);
|
||||
|
||||
notification_label_ = lv_label_create(status_bar_);
|
||||
lv_obj_set_flex_grow(notification_label_, 1);
|
||||
@ -189,18 +188,18 @@ void Ssd1306Display::SetupUI_128x64() {
|
||||
|
||||
mute_label_ = lv_label_create(status_bar_);
|
||||
lv_label_set_text(mute_label_, "");
|
||||
lv_obj_set_style_text_font(mute_label_, &font_awesome_14_1, 0);
|
||||
lv_obj_set_style_text_font(mute_label_, icon_font_, 0);
|
||||
|
||||
battery_label_ = lv_label_create(status_bar_);
|
||||
lv_label_set_text(battery_label_, "");
|
||||
lv_obj_set_style_text_font(battery_label_, &font_awesome_14_1, 0);
|
||||
lv_obj_set_style_text_font(battery_label_, icon_font_, 0);
|
||||
}
|
||||
|
||||
void Ssd1306Display::SetupUI_128x32() {
|
||||
DisplayLockGuard lock(this);
|
||||
|
||||
auto screen = lv_disp_get_scr_act(disp_);
|
||||
lv_obj_set_style_text_font(screen, &font_puhui_14_1, 0);
|
||||
lv_obj_set_style_text_font(screen, text_font_, 0);
|
||||
|
||||
/* Container */
|
||||
container_ = lv_obj_create(screen);
|
||||
@ -242,15 +241,15 @@ void Ssd1306Display::SetupUI_128x32() {
|
||||
|
||||
network_label_ = lv_label_create(status_bar_);
|
||||
lv_label_set_text(network_label_, "");
|
||||
lv_obj_set_style_text_font(network_label_, &font_awesome_14_1, 0);
|
||||
lv_obj_set_style_text_font(network_label_, icon_font_, 0);
|
||||
|
||||
mute_label_ = lv_label_create(status_bar_);
|
||||
lv_label_set_text(mute_label_, "");
|
||||
lv_obj_set_style_text_font(mute_label_, &font_awesome_14_1, 0);
|
||||
lv_obj_set_style_text_font(mute_label_, icon_font_, 0);
|
||||
|
||||
battery_label_ = lv_label_create(status_bar_);
|
||||
lv_label_set_text(battery_label_, "");
|
||||
lv_obj_set_style_text_font(battery_label_, &font_awesome_14_1, 0);
|
||||
lv_obj_set_style_text_font(battery_label_, icon_font_, 0);
|
||||
|
||||
status_label_ = lv_label_create(side_bar_);
|
||||
lv_obj_set_flex_grow(status_label_, 1);
|
||||
|
@ -18,6 +18,9 @@ private:
|
||||
lv_obj_t* container_ = nullptr;
|
||||
lv_obj_t* side_bar_ = nullptr;
|
||||
|
||||
const lv_font_t* text_font_ = nullptr;
|
||||
const lv_font_t* icon_font_ = nullptr;
|
||||
|
||||
virtual bool Lock(int timeout_ms = 0) override;
|
||||
virtual void Unlock() override;
|
||||
|
||||
@ -25,7 +28,8 @@ private:
|
||||
void SetupUI_128x32();
|
||||
|
||||
public:
|
||||
Ssd1306Display(void* i2c_master_handle, int width, int height, bool mirror_x = false, bool mirror_y = false);
|
||||
Ssd1306Display(void* i2c_master_handle, int width, int height, bool mirror_x, bool mirror_y,
|
||||
const lv_font_t* text_font, const lv_font_t* icon_font);
|
||||
~Ssd1306Display();
|
||||
};
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,565 +0,0 @@
|
||||
/*******************************************************************************
|
||||
* Size: 14 px
|
||||
* Bpp: 1
|
||||
* Opts: --no-compress --no-prefilter --force-fast-kern-format --font fa-regular-400.ttf --format lvgl --lv-include lvgl.h --bpp 1 -o font_awesome_14_1.c --size 14 -r 0xf5a4,0xf118,0xf59b,0xf588,0xe384,0xf556,0xf5b3,0xf584,0xf579,0xe36b,0xe375,0xe39b,0xf4da,0xe398,0xe392,0xe372,0xf598,0xe409,0xe38d,0xe3a4,0xe36d,0xf240,0xf241,0xf242,0xf243,0xf244,0xf377,0xf376,0xf1eb,0xf6ab,0xf6aa,0xf6ac,0xf012,0xf68f,0xf68e,0xf68d,0xf68c,0xf695,0xf028,0xf6a8,0xf027,0xf6a9,0xf001,0xf00c,0xf00d,0xf011,0xf013,0xf1f8,0xf015,0xf03e,0xf044,0xf048,0xf051,0xf04b,0xf04c,0xf04d,0xf060,0xf061,0xf062,0xf063,0xf071,0xf0f3,0xf3c5,0xf0ac,0xf124,0xf7c2,0xf293,0xf075,0xe1ec,0xf007,0xe04b,0xf019
|
||||
******************************************************************************/
|
||||
|
||||
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
|
||||
#include "lvgl.h"
|
||||
#else
|
||||
#include "lvgl.h"
|
||||
#endif
|
||||
|
||||
#ifndef FONT_AWESOME_14_1
|
||||
#define FONT_AWESOME_14_1 1
|
||||
#endif
|
||||
|
||||
#if FONT_AWESOME_14_1
|
||||
|
||||
/*-----------------
|
||||
* BITMAPS
|
||||
*----------------*/
|
||||
|
||||
/*Store the image of the glyphs*/
|
||||
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
|
||||
/* U+E04B "" */
|
||||
0x2, 0x0, 0x20, 0x1f, 0x8a, 0x5, 0xad, 0x5a,
|
||||
0x5, 0xaa, 0x53, 0xf8, 0x0, 0x0, 0x0, 0x7f,
|
||||
0xec, 0x3, 0x8b, 0x1f, 0xff,
|
||||
|
||||
/* U+E1EC "" */
|
||||
0x9, 0x40, 0x25, 0x3, 0xff, 0x8, 0x4, 0xe0,
|
||||
0x1c, 0x89, 0x4e, 0x55, 0xcb, 0xd4, 0x68, 0x5b,
|
||||
0x80, 0x72, 0x1, 0xf, 0xfc, 0x9, 0x40, 0x25,
|
||||
0x0,
|
||||
|
||||
/* U+E36B "" */
|
||||
0xf, 0xc0, 0x61, 0x82, 0x1, 0x16, 0x32, 0xe0,
|
||||
0x2e, 0x23, 0x18, 0x8c, 0x60, 0x1, 0x87, 0x7,
|
||||
0x1c, 0x34, 0x70, 0x88, 0x4, 0x18, 0x60, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+E36D "" */
|
||||
0xf, 0xc0, 0x61, 0x82, 0x1, 0x10, 0x2, 0xc8,
|
||||
0xce, 0x23, 0x18, 0x0, 0x60, 0x1, 0x83, 0xc7,
|
||||
0x30, 0x34, 0x80, 0x88, 0x4, 0x18, 0x60, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+E372 "" */
|
||||
0xf, 0xc0, 0x61, 0x82, 0x1, 0x10, 0x2, 0x8c,
|
||||
0xc6, 0x40, 0x98, 0x0, 0x60, 0x1, 0x80, 0x26,
|
||||
0x21, 0xb4, 0x7e, 0x88, 0x2a, 0x18, 0xa0, 0x38,
|
||||
0x80,
|
||||
|
||||
/* U+E375 "" */
|
||||
0xf, 0xc0, 0xe1, 0xc7, 0x8f, 0x98, 0x6, 0xfc,
|
||||
0xee, 0x95, 0x5b, 0xd5, 0x66, 0x39, 0x80, 0x6,
|
||||
0x1c, 0x14, 0xf8, 0x88, 0x4, 0x10, 0x20, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+E384 "" */
|
||||
0xf, 0xc0, 0x61, 0x82, 0x1, 0x12, 0x12, 0xd8,
|
||||
0x6e, 0x80, 0x58, 0x0, 0x60, 0x1, 0x9c, 0xe7,
|
||||
0x0, 0x34, 0x78, 0x88, 0x4, 0x18, 0x60, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+E38D "" */
|
||||
0x7, 0x9c, 0x7f, 0x33, 0x1, 0xd8, 0x38, 0xc0,
|
||||
0x42, 0x3, 0xb8, 0x0, 0x60, 0x1, 0x9c, 0xe6,
|
||||
0x0, 0x1c, 0x30, 0x50, 0xc2, 0x20, 0x18, 0x60,
|
||||
0xc0, 0xfc, 0x0,
|
||||
|
||||
/* U+E392 "" */
|
||||
0xf, 0xc0, 0x61, 0x82, 0x1, 0x10, 0x2, 0xc0,
|
||||
0xe, 0x73, 0x98, 0x0, 0x60, 0x1, 0x80, 0x7,
|
||||
0x21, 0x34, 0x78, 0x88, 0x4, 0x18, 0x60, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+E398 "" */
|
||||
0xf, 0xc0, 0x40, 0x82, 0x1, 0x1f, 0xfe, 0xff,
|
||||
0xff, 0xf3, 0xfb, 0xcf, 0x60, 0x1, 0x80, 0x7,
|
||||
0x21, 0x34, 0x78, 0x88, 0x4, 0x18, 0x60, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+E39B "" */
|
||||
0xf, 0xc0, 0x41, 0x82, 0x81, 0x15, 0x82, 0x88,
|
||||
0xce, 0x3, 0x18, 0x0, 0x63, 0x1, 0x82, 0x7,
|
||||
0x84, 0x36, 0xf0, 0x9f, 0x4, 0x7c, 0x60, 0xee,
|
||||
0x0,
|
||||
|
||||
/* U+E3A4 "" */
|
||||
0xf, 0xc0, 0xe1, 0x87, 0x1d, 0x18, 0x76, 0xd9,
|
||||
0x4f, 0xd2, 0x3f, 0xc7, 0x76, 0x3d, 0xc3, 0xef,
|
||||
0x15, 0xa6, 0xc5, 0x8d, 0x1c, 0x1c, 0x60, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+E409 "" */
|
||||
0xf, 0xc0, 0x61, 0x82, 0x1, 0x16, 0x32, 0xed,
|
||||
0x6e, 0x94, 0x9b, 0xde, 0x60, 0x1, 0x9f, 0xe7,
|
||||
0x7c, 0xb4, 0xe4, 0x89, 0xe4, 0x18, 0x60, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+F001 "" */
|
||||
0x0, 0xc, 0x3, 0xf0, 0x7c, 0x43, 0x1, 0x8,
|
||||
0x3c, 0x2f, 0x90, 0xf0, 0x42, 0x1, 0x8, 0x3c,
|
||||
0x21, 0x1f, 0x84, 0x62, 0xe, 0x88, 0x1, 0xc0,
|
||||
0x0,
|
||||
|
||||
/* U+F007 "" */
|
||||
0xf, 0x1, 0x98, 0x10, 0x81, 0x8, 0x10, 0x81,
|
||||
0xf8, 0xf, 0x0, 0x0, 0x1f, 0x86, 0x6, 0x40,
|
||||
0x2c, 0x3, 0x80, 0x1f, 0xff,
|
||||
|
||||
/* U+F00C "" */
|
||||
0x0, 0x10, 0x3, 0x0, 0x60, 0xc, 0xc1, 0x86,
|
||||
0x30, 0x36, 0x1, 0xc0, 0x8, 0x0,
|
||||
|
||||
/* U+F00D "" */
|
||||
0x81, 0xe1, 0x99, 0x87, 0x81, 0x81, 0xe1, 0x99,
|
||||
0x86, 0x81, 0x80,
|
||||
|
||||
/* U+F011 "" */
|
||||
0x2, 0x1, 0x11, 0x18, 0x8c, 0x84, 0x2c, 0x21,
|
||||
0xc1, 0x6, 0x8, 0x30, 0x1, 0x80, 0xa, 0x0,
|
||||
0x98, 0xc, 0x60, 0xc0, 0xf8, 0x0,
|
||||
|
||||
/* U+F012 "" */
|
||||
0x0, 0x2, 0x0, 0x4, 0x0, 0x48, 0x0, 0x90,
|
||||
0x1, 0x20, 0x22, 0x40, 0x44, 0x80, 0x89, 0x9,
|
||||
0x12, 0x12, 0x26, 0x24, 0x4c, 0x48, 0x98, 0x91,
|
||||
0x31, 0x22, 0x40,
|
||||
|
||||
/* U+F013 "" */
|
||||
0xf, 0x80, 0x44, 0x1e, 0x3c, 0xa0, 0xac, 0x21,
|
||||
0xe6, 0xcd, 0x22, 0x49, 0x32, 0xcf, 0x9e, 0x10,
|
||||
0xd4, 0x14, 0xf1, 0xe0, 0x88, 0x3, 0x80,
|
||||
|
||||
/* U+F015 "" */
|
||||
0x0, 0x0, 0x1, 0x80, 0x7, 0xc0, 0xc, 0x30,
|
||||
0x18, 0x18, 0x30, 0xc, 0x60, 0x6, 0xe0, 0x7,
|
||||
0x23, 0xc4, 0x22, 0x44, 0x22, 0x44, 0x22, 0x44,
|
||||
0x22, 0x44, 0x22, 0x44, 0x1f, 0xf8,
|
||||
|
||||
/* U+F019 "" */
|
||||
0x2, 0x0, 0x10, 0x0, 0x80, 0x4, 0x0, 0x20,
|
||||
0x19, 0x30, 0x6b, 0x1, 0xf0, 0xf7, 0x7c, 0x10,
|
||||
0x60, 0xb, 0x0, 0x58, 0x0, 0xff, 0xfc,
|
||||
|
||||
/* U+F027 "" */
|
||||
0x3, 0x0, 0x70, 0xd, 0x7, 0x90, 0xf1, 0x38,
|
||||
0x11, 0x81, 0x1f, 0x13, 0x79, 0x0, 0xd0, 0x7,
|
||||
0x0, 0x30,
|
||||
|
||||
/* U+F028 "" */
|
||||
0x0, 0x0, 0x1, 0x83, 0x1, 0xc0, 0xc1, 0xa1,
|
||||
0xa7, 0x90, 0x6f, 0x89, 0x96, 0x4, 0x4b, 0x2,
|
||||
0x25, 0xf1, 0x32, 0xbc, 0x82, 0xc3, 0x43, 0x40,
|
||||
0xe0, 0x60, 0x30, 0x60,
|
||||
|
||||
/* U+F03E "" */
|
||||
0xff, 0xfe, 0x0, 0x18, 0x0, 0x66, 0x1, 0x98,
|
||||
0x6, 0x2, 0x18, 0x1c, 0x66, 0xf9, 0xbf, 0xe6,
|
||||
0xff, 0xdf, 0xff, 0xff, 0xff,
|
||||
|
||||
/* U+F044 "" */
|
||||
0x0, 0x10, 0x1, 0xe7, 0xcc, 0xe0, 0xea, 0x85,
|
||||
0x1a, 0x8, 0xc8, 0x46, 0x22, 0x30, 0x89, 0x92,
|
||||
0x3c, 0x48, 0x81, 0x20, 0x4, 0x80, 0x11, 0xff,
|
||||
0x80,
|
||||
|
||||
/* U+F048 "" */
|
||||
0x87, 0x1e, 0xef, 0x1c, 0x38, 0x78, 0xdd, 0x8f,
|
||||
0xc,
|
||||
|
||||
/* U+F04B "" */
|
||||
0x0, 0x38, 0xb, 0x82, 0x30, 0x87, 0x20, 0x68,
|
||||
0xe, 0x3, 0x83, 0xa3, 0x89, 0x83, 0xc0, 0xc0,
|
||||
0x0,
|
||||
|
||||
/* U+F04C "" */
|
||||
0xf7, 0x95, 0x95, 0x95, 0x95, 0x95, 0x95, 0x95,
|
||||
0x95, 0xf7,
|
||||
|
||||
/* U+F04D "" */
|
||||
0xff, 0xe0, 0x18, 0x6, 0x1, 0x80, 0x60, 0x18,
|
||||
0x6, 0x1, 0x80, 0x7f, 0xf0,
|
||||
|
||||
/* U+F051 "" */
|
||||
0xc3, 0xc6, 0xec, 0x78, 0x70, 0xe3, 0xdd, 0xe3,
|
||||
0x84,
|
||||
|
||||
/* U+F060 "" */
|
||||
0x4, 0x0, 0xc0, 0x18, 0x3, 0x0, 0x60, 0xf,
|
||||
0xff, 0x60, 0x3, 0x0, 0x18, 0x0, 0xc0, 0x4,
|
||||
0x0,
|
||||
|
||||
/* U+F061 "" */
|
||||
0x0, 0x0, 0x30, 0x1, 0x80, 0xc, 0x0, 0x6f,
|
||||
0xff, 0x0, 0x60, 0xc, 0x1, 0x80, 0x30, 0x0,
|
||||
0x0,
|
||||
|
||||
/* U+F062 "" */
|
||||
0xe, 0x1, 0xc0, 0x54, 0x12, 0xc6, 0x4c, 0x88,
|
||||
0x81, 0x0, 0x20, 0x4, 0x0, 0x80, 0x10, 0x2,
|
||||
0x0,
|
||||
|
||||
/* U+F063 "" */
|
||||
0x4, 0x0, 0x80, 0x10, 0x2, 0x0, 0x40, 0x8,
|
||||
0x31, 0x1b, 0x26, 0x35, 0x83, 0xe0, 0x38, 0x2,
|
||||
0x0,
|
||||
|
||||
/* U+F071 "" */
|
||||
0x3, 0x0, 0x1e, 0x1, 0x48, 0x2, 0x90, 0x1a,
|
||||
0x61, 0xc8, 0x82, 0x21, 0x18, 0x6, 0x42, 0xb,
|
||||
0x8, 0x38, 0x0, 0x7f, 0xff,
|
||||
|
||||
/* U+F075 "" */
|
||||
0xf, 0xc0, 0xc0, 0xc4, 0x0, 0xb0, 0x3, 0x80,
|
||||
0x6, 0x0, 0x18, 0x0, 0x70, 0x3, 0x40, 0x9,
|
||||
0x0, 0xcf, 0xfc, 0x30, 0x0,
|
||||
|
||||
/* U+F0AC "" */
|
||||
0xf, 0xc0, 0xf3, 0xc6, 0xc9, 0x92, 0x12, 0xff,
|
||||
0xfe, 0x21, 0x18, 0x84, 0x62, 0x11, 0xff, 0xfd,
|
||||
0x21, 0x26, 0x49, 0x8f, 0x3c, 0x1f, 0xe0,
|
||||
|
||||
/* U+F0F3 "" */
|
||||
0x6, 0x0, 0xf0, 0x10, 0x82, 0x4, 0x20, 0x42,
|
||||
0x4, 0x20, 0x42, 0x4, 0x60, 0x64, 0x2, 0xff,
|
||||
0xf0, 0x0, 0xf, 0x0, 0x60,
|
||||
|
||||
/* U+F118 "" */
|
||||
0xf, 0xc0, 0x61, 0x82, 0x1, 0x10, 0x2, 0xc8,
|
||||
0xce, 0x23, 0x18, 0x0, 0x60, 0x1, 0x80, 0x7,
|
||||
0x21, 0x34, 0x78, 0x88, 0x4, 0x18, 0x60, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+F124 "" */
|
||||
0x0, 0x20, 0xf, 0x7, 0xa1, 0xe6, 0x78, 0x4f,
|
||||
0xec, 0x2, 0xc0, 0x38, 0x3, 0x80, 0x30, 0x3,
|
||||
0x0, 0x20,
|
||||
|
||||
/* U+F1EB "" */
|
||||
0x7, 0xf8, 0xe, 0x3, 0x86, 0x0, 0x3b, 0x0,
|
||||
0x2, 0x0, 0x0, 0x0, 0xfc, 0x0, 0xc1, 0xc0,
|
||||
0x40, 0x10, 0x0, 0x0, 0x0, 0x70, 0x0, 0x1c,
|
||||
0x0, 0x2, 0x0,
|
||||
|
||||
/* U+F1F8 "" */
|
||||
0xf, 0x81, 0x88, 0xff, 0xf4, 0x2, 0x40, 0x24,
|
||||
0x2, 0x60, 0x26, 0x2, 0x60, 0x26, 0x2, 0x60,
|
||||
0x62, 0x6, 0x20, 0x63, 0xfc,
|
||||
|
||||
/* U+F240 "" */
|
||||
0x7f, 0xfc, 0x80, 0x2, 0xbf, 0xf3, 0xbf, 0xf3,
|
||||
0xbf, 0xf3, 0x80, 0x2, 0x80, 0x2, 0x7f, 0xfc,
|
||||
|
||||
/* U+F241 "" */
|
||||
0x7f, 0xfc, 0x80, 0x2, 0xbf, 0x83, 0xbf, 0x83,
|
||||
0xbf, 0x83, 0x80, 0x2, 0x80, 0x2, 0x7f, 0xfc,
|
||||
|
||||
/* U+F242 "" */
|
||||
0x7f, 0xfc, 0x80, 0x2, 0x9f, 0x3, 0x9f, 0x3,
|
||||
0x9f, 0x3, 0x80, 0x2, 0x80, 0x2, 0x7f, 0xfc,
|
||||
|
||||
/* U+F243 "" */
|
||||
0x7f, 0xfc, 0x80, 0x2, 0xb8, 0x3, 0xb8, 0x3,
|
||||
0xb8, 0x3, 0x80, 0x2, 0x80, 0x2, 0x7f, 0xfc,
|
||||
|
||||
/* U+F244 "" */
|
||||
0x7f, 0xfc, 0x80, 0x2, 0x80, 0x3, 0x80, 0x3,
|
||||
0x80, 0x3, 0x80, 0x2, 0x80, 0x2, 0x7f, 0xfc,
|
||||
|
||||
/* U+F293 "" */
|
||||
0xc, 0x7, 0x2, 0xd9, 0x36, 0xb1, 0xf0, 0x70,
|
||||
0x38, 0x7f, 0x64, 0xc2, 0xc1, 0xc0, 0xc0, 0x40,
|
||||
|
||||
/* U+F376 "" */
|
||||
0x7e, 0xdc, 0x81, 0x82, 0x83, 0x83, 0x87, 0xc3,
|
||||
0x87, 0xc3, 0x83, 0x82, 0x83, 0x2, 0x76, 0xfc,
|
||||
|
||||
/* U+F377 "" */
|
||||
0x80, 0x0, 0x30, 0x0, 0x3, 0x0, 0x0, 0x7f,
|
||||
0xf8, 0x4e, 0x1, 0x10, 0xc0, 0x64, 0x18, 0x19,
|
||||
0x3, 0x86, 0x40, 0x31, 0x10, 0x7, 0x43, 0xfe,
|
||||
0x60, 0x0, 0xc, 0x0, 0x1, 0xc0, 0x0, 0x10,
|
||||
|
||||
/* U+F3C5 "" */
|
||||
0x1e, 0x18, 0x64, 0xa, 0x31, 0x92, 0x64, 0x98,
|
||||
0xc5, 0x2, 0x40, 0x88, 0x43, 0x30, 0x48, 0x1c,
|
||||
0x3, 0x0,
|
||||
|
||||
/* U+F4DA "" */
|
||||
0xf, 0xc0, 0x61, 0x82, 0x1, 0x10, 0x2, 0xc8,
|
||||
0xce, 0x22, 0x98, 0x0, 0x60, 0x1, 0x80, 0x7,
|
||||
0x21, 0x34, 0x78, 0x88, 0x4, 0x18, 0x60, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+F556 "" */
|
||||
0xf, 0xc0, 0x61, 0x82, 0x1, 0x10, 0x2, 0xc0,
|
||||
0xe, 0x73, 0x98, 0x84, 0x60, 0x1, 0x80, 0x7,
|
||||
0xc, 0x34, 0x78, 0x88, 0x4, 0x18, 0x60, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+F579 "" */
|
||||
0xf, 0xc0, 0x61, 0xc2, 0x1, 0x90, 0x2, 0xdc,
|
||||
0xee, 0x94, 0x5b, 0xb5, 0x67, 0x39, 0x80, 0x7,
|
||||
0x3e, 0x34, 0x0, 0x88, 0x6, 0x18, 0x70, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+F584 "" */
|
||||
0xf, 0xc0, 0x61, 0x82, 0x1, 0x10, 0x2, 0xc4,
|
||||
0x8e, 0x73, 0x98, 0xcc, 0x60, 0x1, 0x80, 0x7,
|
||||
0x3f, 0x34, 0x78, 0x88, 0x4, 0x18, 0x60, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+F588 "" */
|
||||
0x3, 0xf0, 0x1, 0x86, 0x1, 0x80, 0x60, 0x40,
|
||||
0x8, 0x33, 0x33, 0x9, 0xce, 0x40, 0x0, 0x3,
|
||||
0x80, 0x7, 0xe0, 0x1, 0xf4, 0xfc, 0xb1, 0x1e,
|
||||
0x20, 0x60, 0x18, 0xe, 0x1c, 0x0, 0xfc, 0x0,
|
||||
|
||||
/* U+F598 "" */
|
||||
0xf, 0xc0, 0x60, 0x82, 0x1, 0x90, 0x2, 0x88,
|
||||
0x6, 0x23, 0x98, 0x0, 0x60, 0xc1, 0x83, 0x36,
|
||||
0xc, 0xf4, 0x33, 0xc8, 0xf, 0x10, 0x0, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+F59B "" */
|
||||
0xf, 0xc0, 0x61, 0x82, 0x1, 0x10, 0xa, 0xd8,
|
||||
0x6e, 0x33, 0x19, 0x2, 0x60, 0x1, 0x8f, 0xe7,
|
||||
0x3f, 0x34, 0x78, 0x88, 0x4, 0x18, 0x60, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+F5A4 "" */
|
||||
0xf, 0xc0, 0x61, 0x82, 0x1, 0x10, 0x2, 0xc8,
|
||||
0xce, 0x23, 0x18, 0x0, 0x60, 0x1, 0x80, 0x7,
|
||||
0x0, 0x34, 0x0, 0x88, 0x4, 0x18, 0x60, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+F5B3 "" */
|
||||
0xf, 0xc0, 0x40, 0x82, 0x1, 0x10, 0x2, 0x80,
|
||||
0x6, 0x73, 0x98, 0x0, 0x65, 0xc9, 0xd7, 0x2f,
|
||||
0x5c, 0xb7, 0x3, 0x8c, 0xc, 0x18, 0x60, 0x3f,
|
||||
0x0,
|
||||
|
||||
/* U+F68C "" */
|
||||
0xf0,
|
||||
|
||||
/* U+F68D "" */
|
||||
0x8, 0x63, 0x18, 0xc4,
|
||||
|
||||
/* U+F68E "" */
|
||||
0x0, 0x80, 0x40, 0x21, 0x10, 0x8c, 0x46, 0x23,
|
||||
0x11, 0x88, 0x80,
|
||||
|
||||
/* U+F68F "" */
|
||||
0x0, 0x10, 0x1, 0x0, 0x10, 0x11, 0x1, 0x10,
|
||||
0x11, 0x9, 0x10, 0x91, 0x89, 0x18, 0x91, 0x89,
|
||||
0x18, 0x91,
|
||||
|
||||
/* U+F695 "" */
|
||||
0xc0, 0x1, 0x30, 0x0, 0x8c, 0x2, 0x43, 0x1,
|
||||
0x20, 0x60, 0x90, 0x1c, 0x48, 0x6, 0x24, 0x1,
|
||||
0xd2, 0x4, 0x39, 0x2, 0x4c, 0x91, 0x23, 0xc8,
|
||||
0x90, 0xe4, 0x48, 0x9a, 0x24, 0x44,
|
||||
|
||||
/* U+F6A8 "" */
|
||||
0x3, 0x0, 0xe, 0x0, 0x34, 0x33, 0xc8, 0x3f,
|
||||
0x13, 0x30, 0x22, 0x60, 0x44, 0xf8, 0x99, 0x79,
|
||||
0x4, 0x1a, 0x18, 0x1c, 0x0, 0x18, 0x0,
|
||||
|
||||
/* U+F6A9 "" */
|
||||
0x3, 0x0, 0xe, 0x0, 0x34, 0x3, 0xc9, 0x1f,
|
||||
0x13, 0x70, 0x23, 0xa0, 0x47, 0x78, 0x9b, 0x79,
|
||||
0x22, 0x1a, 0x0, 0x1c, 0x0, 0x18, 0x0,
|
||||
|
||||
/* U+F6AA "" */
|
||||
0xfd, 0x0,
|
||||
|
||||
/* U+F6AB "" */
|
||||
0x1f, 0x86, 0xe, 0x80, 0x20, 0x0, 0x6, 0x0,
|
||||
0xe0, 0x6, 0x0,
|
||||
|
||||
/* U+F6AC "" */
|
||||
0x80, 0x0, 0x37, 0xfc, 0xe, 0x3, 0x93, 0x0,
|
||||
0x78, 0xe0, 0x8, 0x1c, 0x0, 0x27, 0xc0, 0x39,
|
||||
0xb8, 0x10, 0x34, 0x0, 0xc, 0x0, 0x73, 0x0,
|
||||
0x38, 0xe0, 0x8, 0x18, 0x0, 0x4,
|
||||
|
||||
/* U+F7C2 "" */
|
||||
0x1f, 0xc8, 0x14, 0x96, 0x35, 0x80, 0x60, 0x18,
|
||||
0x6, 0x1, 0x80, 0x60, 0x18, 0x6, 0x1, 0x80,
|
||||
0x7f, 0xf0
|
||||
};
|
||||
|
||||
|
||||
/*---------------------
|
||||
* GLYPH DESCRIPTION
|
||||
*--------------------*/
|
||||
|
||||
static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
|
||||
{.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */,
|
||||
{.bitmap_index = 0, .adv_w = 196, .box_w = 12, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 21, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 46, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 71, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 96, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 121, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 146, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 171, .adv_w = 224, .box_w = 14, .box_h = 15, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 198, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 223, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 248, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 273, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 298, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 323, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 348, .adv_w = 196, .box_w = 12, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 369, .adv_w = 196, .box_w = 12, .box_h = 9, .ofs_x = 0, .ofs_y = 1},
|
||||
{.bitmap_index = 383, .adv_w = 168, .box_w = 9, .box_h = 9, .ofs_x = 1, .ofs_y = 1},
|
||||
{.bitmap_index = 394, .adv_w = 224, .box_w = 13, .box_h = 13, .ofs_x = 0, .ofs_y = -1},
|
||||
{.bitmap_index = 416, .adv_w = 280, .box_w = 15, .box_h = 14, .ofs_x = 1, .ofs_y = -2},
|
||||
{.bitmap_index = 443, .adv_w = 224, .box_w = 13, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 466, .adv_w = 252, .box_w = 16, .box_h = 15, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 496, .adv_w = 224, .box_w = 13, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 519, .adv_w = 196, .box_w = 12, .box_h = 12, .ofs_x = 0, .ofs_y = -1},
|
||||
{.bitmap_index = 537, .adv_w = 280, .box_w = 17, .box_h = 13, .ofs_x = 0, .ofs_y = -1},
|
||||
{.bitmap_index = 565, .adv_w = 224, .box_w = 14, .box_h = 12, .ofs_x = 0, .ofs_y = -1},
|
||||
{.bitmap_index = 586, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 611, .adv_w = 140, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0},
|
||||
{.bitmap_index = 620, .adv_w = 168, .box_w = 10, .box_h = 13, .ofs_x = 0, .ofs_y = -1},
|
||||
{.bitmap_index = 637, .adv_w = 140, .box_w = 8, .box_h = 10, .ofs_x = 0, .ofs_y = 0},
|
||||
{.bitmap_index = 647, .adv_w = 168, .box_w = 10, .box_h = 10, .ofs_x = 0, .ofs_y = 0},
|
||||
{.bitmap_index = 660, .adv_w = 140, .box_w = 7, .box_h = 10, .ofs_x = 1, .ofs_y = 0},
|
||||
{.bitmap_index = 669, .adv_w = 196, .box_w = 12, .box_h = 11, .ofs_x = 0, .ofs_y = 0},
|
||||
{.bitmap_index = 686, .adv_w = 196, .box_w = 12, .box_h = 11, .ofs_x = 0, .ofs_y = 0},
|
||||
{.bitmap_index = 703, .adv_w = 168, .box_w = 11, .box_h = 12, .ofs_x = 0, .ofs_y = -1},
|
||||
{.bitmap_index = 720, .adv_w = 168, .box_w = 11, .box_h = 12, .ofs_x = 0, .ofs_y = -1},
|
||||
{.bitmap_index = 737, .adv_w = 224, .box_w = 14, .box_h = 12, .ofs_x = 0, .ofs_y = -1},
|
||||
{.bitmap_index = 758, .adv_w = 224, .box_w = 14, .box_h = 12, .ofs_x = 0, .ofs_y = -1},
|
||||
{.bitmap_index = 779, .adv_w = 224, .box_w = 14, .box_h = 13, .ofs_x = 0, .ofs_y = -1},
|
||||
{.bitmap_index = 802, .adv_w = 196, .box_w = 12, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 823, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 848, .adv_w = 196, .box_w = 12, .box_h = 12, .ofs_x = 0, .ofs_y = -1},
|
||||
{.bitmap_index = 866, .adv_w = 280, .box_w = 18, .box_h = 12, .ofs_x = 0, .ofs_y = -1},
|
||||
{.bitmap_index = 893, .adv_w = 196, .box_w = 12, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 914, .adv_w = 252, .box_w = 16, .box_h = 8, .ofs_x = 0, .ofs_y = 1},
|
||||
{.bitmap_index = 930, .adv_w = 252, .box_w = 16, .box_h = 8, .ofs_x = 0, .ofs_y = 1},
|
||||
{.bitmap_index = 946, .adv_w = 252, .box_w = 16, .box_h = 8, .ofs_x = 0, .ofs_y = 1},
|
||||
{.bitmap_index = 962, .adv_w = 252, .box_w = 16, .box_h = 8, .ofs_x = 0, .ofs_y = 1},
|
||||
{.bitmap_index = 978, .adv_w = 252, .box_w = 16, .box_h = 8, .ofs_x = 0, .ofs_y = 1},
|
||||
{.bitmap_index = 994, .adv_w = 168, .box_w = 9, .box_h = 14, .ofs_x = 1, .ofs_y = -2},
|
||||
{.bitmap_index = 1010, .adv_w = 252, .box_w = 16, .box_h = 8, .ofs_x = 0, .ofs_y = 1},
|
||||
{.bitmap_index = 1026, .adv_w = 280, .box_w = 18, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 1058, .adv_w = 168, .box_w = 10, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 1076, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 1101, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 1126, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 1151, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 1176, .adv_w = 280, .box_w = 18, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 1208, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 1233, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 1258, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 1283, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 1308, .adv_w = 280, .box_w = 1, .box_h = 4, .ofs_x = 1, .ofs_y = -2},
|
||||
{.bitmap_index = 1309, .adv_w = 280, .box_w = 5, .box_h = 6, .ofs_x = 1, .ofs_y = -2},
|
||||
{.bitmap_index = 1313, .adv_w = 280, .box_w = 9, .box_h = 9, .ofs_x = 1, .ofs_y = -2},
|
||||
{.bitmap_index = 1324, .adv_w = 280, .box_w = 12, .box_h = 12, .ofs_x = 1, .ofs_y = -2},
|
||||
{.bitmap_index = 1342, .adv_w = 280, .box_w = 17, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 1372, .adv_w = 252, .box_w = 15, .box_h = 12, .ofs_x = 1, .ofs_y = -1},
|
||||
{.bitmap_index = 1395, .adv_w = 252, .box_w = 15, .box_h = 12, .ofs_x = 0, .ofs_y = -1},
|
||||
{.bitmap_index = 1418, .adv_w = 280, .box_w = 3, .box_h = 3, .ofs_x = 7, .ofs_y = -1},
|
||||
{.bitmap_index = 1420, .adv_w = 280, .box_w = 12, .box_h = 7, .ofs_x = 3, .ofs_y = -1},
|
||||
{.bitmap_index = 1431, .adv_w = 280, .box_w = 17, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
|
||||
{.bitmap_index = 1461, .adv_w = 168, .box_w = 10, .box_h = 14, .ofs_x = 0, .ofs_y = -2}
|
||||
};
|
||||
|
||||
/*---------------------
|
||||
* CHARACTER MAPPING
|
||||
*--------------------*/
|
||||
|
||||
static const uint16_t unicode_list_0[] = {
|
||||
0x0, 0x1a1, 0x320, 0x322, 0x327, 0x32a, 0x339, 0x342,
|
||||
0x347, 0x34d, 0x350, 0x359, 0x3be, 0xfb6, 0xfbc, 0xfc1,
|
||||
0xfc2, 0xfc6, 0xfc7, 0xfc8, 0xfca, 0xfce, 0xfdc, 0xfdd,
|
||||
0xff3, 0xff9, 0xffd, 0x1000, 0x1001, 0x1002, 0x1006, 0x1015,
|
||||
0x1016, 0x1017, 0x1018, 0x1026, 0x102a, 0x1061, 0x10a8, 0x10cd,
|
||||
0x10d9, 0x11a0, 0x11ad, 0x11f5, 0x11f6, 0x11f7, 0x11f8, 0x11f9,
|
||||
0x1248, 0x132b, 0x132c, 0x137a, 0x148f, 0x150b, 0x152e, 0x1539,
|
||||
0x153d, 0x154d, 0x1550, 0x1559, 0x1568, 0x1641, 0x1642, 0x1643,
|
||||
0x1644, 0x164a, 0x165d, 0x165e, 0x165f, 0x1660, 0x1661, 0x1777
|
||||
};
|
||||
|
||||
/*Collect the unicode lists and glyph_id offsets*/
|
||||
static const lv_font_fmt_txt_cmap_t cmaps[] =
|
||||
{
|
||||
{
|
||||
.range_start = 57419, .range_length = 6008, .glyph_id_start = 1,
|
||||
.unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 72, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
/*--------------------
|
||||
* ALL CUSTOM DATA
|
||||
*--------------------*/
|
||||
|
||||
#if LVGL_VERSION_MAJOR == 8
|
||||
/*Store all the custom data of the font*/
|
||||
static lv_font_fmt_txt_glyph_cache_t cache;
|
||||
#endif
|
||||
|
||||
#if LVGL_VERSION_MAJOR >= 8
|
||||
static const lv_font_fmt_txt_dsc_t font_dsc = {
|
||||
#else
|
||||
static lv_font_fmt_txt_dsc_t font_dsc = {
|
||||
#endif
|
||||
.glyph_bitmap = glyph_bitmap,
|
||||
.glyph_dsc = glyph_dsc,
|
||||
.cmaps = cmaps,
|
||||
.kern_dsc = NULL,
|
||||
.kern_scale = 0,
|
||||
.cmap_num = 1,
|
||||
.bpp = 1,
|
||||
.kern_classes = 0,
|
||||
.bitmap_format = 0,
|
||||
#if LVGL_VERSION_MAJOR == 8
|
||||
.cache = &cache
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
|
||||
/*-----------------
|
||||
* PUBLIC FONT
|
||||
*----------------*/
|
||||
|
||||
/*Initialize a public general font descriptor*/
|
||||
#if LVGL_VERSION_MAJOR >= 8
|
||||
const lv_font_t font_awesome_14_1 = {
|
||||
#else
|
||||
lv_font_t font_awesome_14_1 = {
|
||||
#endif
|
||||
.get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt, /*Function pointer to get glyph's data*/
|
||||
.get_glyph_bitmap = lv_font_get_bitmap_fmt_txt, /*Function pointer to get glyph's bitmap*/
|
||||
.line_height = 15, /*The maximum line height required by the font*/
|
||||
.base_line = 2, /*Baseline measured from the bottom of the line*/
|
||||
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
|
||||
.subpx = LV_FONT_SUBPX_NONE,
|
||||
#endif
|
||||
#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8
|
||||
.underline_position = -1,
|
||||
.underline_thickness = 1,
|
||||
#endif
|
||||
.dsc = &font_dsc, /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
|
||||
#if LV_VERSION_CHECK(8, 2, 0) || LVGL_VERSION_MAJOR >= 9
|
||||
.fallback = NULL,
|
||||
#endif
|
||||
.user_data = NULL,
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif /*#if FONT_AWESOME_14_1*/
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,77 +0,0 @@
|
||||
#ifndef FONT_AWESOME_SYMBOLS_H
|
||||
#define FONT_AWESOME_SYMBOLS_H
|
||||
|
||||
#define FONT_AWESOME_EMOJI_NEUTRAL "\xef\x96\xa4"
|
||||
#define FONT_AWESOME_EMOJI_HAPPY "\xef\x84\x98"
|
||||
#define FONT_AWESOME_EMOJI_LAUGHING "\xef\x96\x9b"
|
||||
#define FONT_AWESOME_EMOJI_FUNNY "\xef\x96\x88"
|
||||
#define FONT_AWESOME_EMOJI_SAD "\xee\x8e\x84"
|
||||
#define FONT_AWESOME_EMOJI_ANGRY "\xef\x95\x96"
|
||||
#define FONT_AWESOME_EMOJI_CRYING "\xef\x96\xb3"
|
||||
#define FONT_AWESOME_EMOJI_LOVING "\xef\x96\x84"
|
||||
#define FONT_AWESOME_EMOJI_EMBARRASSED "\xef\x95\xb9"
|
||||
#define FONT_AWESOME_EMOJI_SURPRISED "\xee\x8d\xab"
|
||||
#define FONT_AWESOME_EMOJI_SHOCKED "\xee\x8d\xb5"
|
||||
#define FONT_AWESOME_EMOJI_THINKING "\xee\x8e\x9b"
|
||||
#define FONT_AWESOME_EMOJI_WINKING "\xef\x93\x9a"
|
||||
#define FONT_AWESOME_EMOJI_COOL "\xee\x8e\x98"
|
||||
#define FONT_AWESOME_EMOJI_RELAXED "\xee\x8e\x92"
|
||||
#define FONT_AWESOME_EMOJI_DELICIOUS "\xee\x8d\xb2"
|
||||
#define FONT_AWESOME_EMOJI_KISSY "\xef\x96\x98"
|
||||
#define FONT_AWESOME_EMOJI_CONFIDENT "\xee\x90\x89"
|
||||
#define FONT_AWESOME_EMOJI_SLEEPY "\xee\x8e\x8d"
|
||||
#define FONT_AWESOME_EMOJI_SILLY "\xee\x8e\xa4"
|
||||
#define FONT_AWESOME_EMOJI_CONFUSED "\xee\x8d\xad"
|
||||
#define FONT_AWESOME_BATTERY_FULL "\xef\x89\x80"
|
||||
#define FONT_AWESOME_BATTERY_3 "\xef\x89\x81"
|
||||
#define FONT_AWESOME_BATTERY_2 "\xef\x89\x82"
|
||||
#define FONT_AWESOME_BATTERY_1 "\xef\x89\x83"
|
||||
#define FONT_AWESOME_BATTERY_EMPTY "\xef\x89\x84"
|
||||
#define FONT_AWESOME_BATTERY_SLASH "\xef\x8d\xb7"
|
||||
#define FONT_AWESOME_BATTERY_CHARGING "\xef\x8d\xb6"
|
||||
#define FONT_AWESOME_WIFI "\xef\x87\xab"
|
||||
#define FONT_AWESOME_WIFI_FAIR "\xef\x9a\xab"
|
||||
#define FONT_AWESOME_WIFI_WEAK "\xef\x9a\xaa"
|
||||
#define FONT_AWESOME_WIFI_OFF "\xef\x9a\xac"
|
||||
#define FONT_AWESOME_SIGNAL_FULL "\xef\x80\x92"
|
||||
#define FONT_AWESOME_SIGNAL_4 "\xef\x9a\x8f"
|
||||
#define FONT_AWESOME_SIGNAL_3 "\xef\x9a\x8e"
|
||||
#define FONT_AWESOME_SIGNAL_2 "\xef\x9a\x8d"
|
||||
#define FONT_AWESOME_SIGNAL_1 "\xef\x9a\x8c"
|
||||
#define FONT_AWESOME_SIGNAL_OFF "\xef\x9a\x95"
|
||||
#define FONT_AWESOME_VOLUME_HIGH "\xef\x80\xa8"
|
||||
#define FONT_AWESOME_VOLUME_MEDIUM "\xef\x9a\xa8"
|
||||
#define FONT_AWESOME_VOLUME_LOW "\xef\x80\xa7"
|
||||
#define FONT_AWESOME_VOLUME_MUTE "\xef\x9a\xa9"
|
||||
#define FONT_AWESOME_MUSIC "\xef\x80\x81"
|
||||
#define FONT_AWESOME_CHECK "\xef\x80\x8c"
|
||||
#define FONT_AWESOME_XMARK "\xef\x80\x8d"
|
||||
#define FONT_AWESOME_POWER "\xef\x80\x91"
|
||||
#define FONT_AWESOME_GEAR "\xef\x80\x93"
|
||||
#define FONT_AWESOME_TRASH "\xef\x87\xb8"
|
||||
#define FONT_AWESOME_HOME "\xef\x80\x95"
|
||||
#define FONT_AWESOME_IMAGE "\xef\x80\xbe"
|
||||
#define FONT_AWESOME_EDIT "\xef\x81\x84"
|
||||
#define FONT_AWESOME_PREV "\xef\x81\x88"
|
||||
#define FONT_AWESOME_NEXT "\xef\x81\x91"
|
||||
#define FONT_AWESOME_PLAY "\xef\x81\x8b"
|
||||
#define FONT_AWESOME_PAUSE "\xef\x81\x8c"
|
||||
#define FONT_AWESOME_STOP "\xef\x81\x8d"
|
||||
#define FONT_AWESOME_MICARROW_LEFT "\xef\x81\xa0"
|
||||
#define FONT_AWESOME_ARROW_RIGHT "\xef\x81\xa1"
|
||||
#define FONT_AWESOME_ARROW_UP "\xef\x81\xa2"
|
||||
#define FONT_AWESOME_ARROW_DOWN "\xef\x81\xa3"
|
||||
#define FONT_AWESOME_WARNING "\xef\x81\xb1"
|
||||
#define FONT_AWESOME_BELL "\xef\x83\xb3"
|
||||
#define FONT_AWESOME_LOCATION "\xef\x8f\x85"
|
||||
#define FONT_AWESOME_GLOBE "\xef\x82\xac"
|
||||
#define FONT_AWESOME_LOCATION_ARROW "\xef\x84\xa4"
|
||||
#define FONT_AWESOME_SD_CARD "\xef\x9f\x82"
|
||||
#define FONT_AWESOME_BLUETOOTH "\xef\x8a\x93"
|
||||
#define FONT_AWESOME_COMMENT "\xef\x81\xb5"
|
||||
#define FONT_AWESOME_AI_CHIP "\xee\x87\xac"
|
||||
#define FONT_AWESOME_USER "\xef\x80\x87"
|
||||
#define FONT_AWESOME_USER_ROBOT "\xee\x81\x8b"
|
||||
#define FONT_AWESOME_DOWNLOAD "\xef\x80\x99"
|
||||
|
||||
#endif
|
File diff suppressed because one or more lines are too long
@ -9,6 +9,7 @@ dependencies:
|
||||
78/esp-wifi-connect: "~2.0.2"
|
||||
78/esp-opus-encoder: "~2.1.0"
|
||||
78/esp-ml307: "~1.7.1"
|
||||
78/xiaozhi-fonts: "~1.1.0"
|
||||
espressif/led_strip: "^2.4.1"
|
||||
espressif/esp_codec_dev: "~1.3.2"
|
||||
espressif/esp-sr: "^1.9.0"
|
||||
|
@ -4,7 +4,5 @@ nvs, data, nvs, 0x9000, 0x4000,
|
||||
otadata, data, ota, 0xd000, 0x2000,
|
||||
phy_init, data, phy, 0xf000, 0x1000,
|
||||
model, data, spiffs, 0x10000, 0xF0000,
|
||||
storage, data, spiffs, 0x100000, 1M,
|
||||
factory, app, factory, 0x200000, 4M,
|
||||
ota_0, app, ota_0, 0x600000, 4M,
|
||||
ota_1, app, ota_1, 0xA00000, 4M,
|
||||
ota_0, app, ota_0, 0x100000, 6M,
|
||||
ota_1, app, ota_1, 0x700000, 6M,
|
||||
|
|
@ -4,6 +4,5 @@ nvs, data, nvs, 0x9000, 0x4000,
|
||||
otadata, data, ota, 0xd000, 0x2000,
|
||||
phy_init, data, phy, 0xf000, 0x1000,
|
||||
model, data, spiffs, 0x10000, 0xF0000,
|
||||
storage, data, spiffs, 0x100000, 1M,
|
||||
ota_0, app, ota_0, 0x200000, 3M,
|
||||
ota_1, app, ota_1, 0x500000, 3M,
|
||||
ota_0, app, ota_0, 0x100000, 0x380000,
|
||||
ota_1, app, ota_1, 0x480000, 0x380000,
|
||||
|
|
@ -25,4 +25,32 @@ CONFIG_ESP_WIFI_IRAM_OPT=n
|
||||
CONFIG_ESP_WIFI_RX_IRAM_OPT=n
|
||||
|
||||
CONFIG_CODEC_I2C_BACKWARD_COMPATIBLE=n
|
||||
CONFIG_LV_USE_IMGFONT=y
|
||||
|
||||
CONFIG_LV_USE_IMGFONT=y
|
||||
|
||||
# Use compressed font
|
||||
CONFIG_LV_FONT_FMT_TXT_LARGE=y
|
||||
CONFIG_LV_USE_FONT_COMPRESSED=y
|
||||
CONFIG_LV_USE_FONT_SUBPX=y
|
||||
|
||||
# Disable extra widgets to save flash size
|
||||
CONFIG_LV_USE_ANIMIMG=n
|
||||
CONFIG_LV_USE_CALENDAR=n
|
||||
CONFIG_LV_USE_CALENDAR_HEADER_ARROW=n
|
||||
CONFIG_LV_USE_CALENDAR_HEADER_DROPDOWN=n
|
||||
CONFIG_LV_USE_CHART=n
|
||||
CONFIG_LV_USE_COLORWHEEL=n
|
||||
CONFIG_LV_USE_IMGBTN=n
|
||||
CONFIG_LV_USE_KEYBOARD=n
|
||||
CONFIG_LV_USE_LED=n
|
||||
CONFIG_LV_USE_LIST=n
|
||||
CONFIG_LV_USE_MENU=n
|
||||
CONFIG_LV_USE_METER=n
|
||||
CONFIG_LV_USE_MSGBOX=n
|
||||
CONFIG_LV_USE_SPAN=n
|
||||
CONFIG_LV_SPAN_SNIPPET_STACK_SIZE=64
|
||||
CONFIG_LV_USE_SPINBOX=n
|
||||
CONFIG_LV_USE_SPINNER=n
|
||||
CONFIG_LV_USE_TABVIEW=n
|
||||
CONFIG_LV_USE_TILEVIEW=n
|
||||
CONFIG_LV_USE_WIN=n
|
||||
|
Reference in New Issue
Block a user