You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor emoji initialization for Electron and Otto boards to use Assets system
- Removed direct emoji initialization from `InitializeElectronEmojis` and `InitializeOttoEmojis` methods, delegating the responsibility to the Assets system.
- Updated `CMakeLists.txt` to set `DEFAULT_EMOJI_COLLECTION` to `otto-gif` for both boards.
- Enhanced `build_default_assets.py` to support alias mapping for Otto GIF emojis.
- Updated `idf_component.yml` to bump `otto-emoji-gif-component` version to `^1.0.5` for improved functionality.
Copy file name to clipboardExpand all lines: main/boards/electron-bot/electron_emoji_display.cc
+5-56Lines changed: 5 additions & 56 deletions
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,13 @@
3
3
#include<esp_log.h>
4
4
5
5
#include<cstring>
6
+
#include<vector>
6
7
8
+
#include"assets.h"
7
9
#include"assets/lang_config.h"
8
10
#include"display/lvgl_display/emoji_collection.h"
9
11
#include"display/lvgl_display/lvgl_image.h"
10
12
#include"display/lvgl_display/lvgl_theme.h"
11
-
#include"otto_emoji_gif.h"
12
13
13
14
#defineTAG"ElectronEmojiDisplay"
14
15
ElectronEmojiDisplay::ElectronEmojiDisplay(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_handle_t panel, int width, int height, int offset_x, int offset_y, bool mirror_x, bool mirror_y,
@@ -19,64 +20,12 @@ ElectronEmojiDisplay::ElectronEmojiDisplay(esp_lcd_panel_io_handle_t panel_io, e
Copy file name to clipboardExpand all lines: main/boards/otto-robot/otto_emoji_display.cc
+6-57Lines changed: 6 additions & 57 deletions
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,13 @@
3
3
#include<esp_log.h>
4
4
5
5
#include<cstring>
6
+
#include<vector>
6
7
8
+
#include"assets.h"
7
9
#include"assets/lang_config.h"
8
10
#include"display/lvgl_display/emoji_collection.h"
9
11
#include"display/lvgl_display/lvgl_image.h"
10
12
#include"display/lvgl_display/lvgl_theme.h"
11
-
#include"otto_emoji_gif.h"
12
13
13
14
#defineTAG"OttoEmojiDisplay"
14
15
OttoEmojiDisplay::OttoEmojiDisplay(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_handle_t panel, int width, int height, int offset_x, int offset_y, bool mirror_x, bool mirror_y, bool swap_xy)
0 commit comments