Skip to content

Commit

Permalink
esp-idf component
Browse files Browse the repository at this point in the history
  • Loading branch information
ChisBread committed Sep 5, 2022
1 parent 7f89610 commit 5f44007
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 1,288 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "Firmware/ESP32/RX5808/components/esp32-video"]
path = Firmware/ESP32/RX5808/components/esp32-video
url = https://github.com/ChisBread/esp32-video
2 changes: 2 additions & 0 deletions Firmware/ESP32/RX5808/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)


set(EXTRA_COMPONENT_DIRS "components/esp32-video")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(RX5808)
1 change: 1 addition & 0 deletions Firmware/ESP32/RX5808/components/esp32-video
Submodule esp32-video added at 490f64
3 changes: 0 additions & 3 deletions Firmware/ESP32/RX5808/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ file(GLOB_RECURSE SOURCES "./*.c"
"./gui/lvgl_app/resources/*.c"
"./gui/lvgl_driver/*.c"
"./driver/*.c"
"./video/*.c"
"./video/*.cpp"
)
set(INCLUDE_DIRSx "./"
"./hardware/"
Expand Down Expand Up @@ -71,7 +69,6 @@ set(INCLUDE_DIRSx "./"
"./gui/lvgl_app/resources/"
"./gui/lvgl_driver/"
"./driver/"
"./video/"
)

set(SRCSx main.c)
Expand Down
8 changes: 4 additions & 4 deletions Firmware/ESP32/RX5808/main/gui/lvgl_driver/lv_port_disp.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ void IRAM_ATTR video_composite_switch(bool flag) {
g_dac_video_render = flag;
if(g_dac_video_render) {
// 注册A/V信号输出
graph_video_start(0);
esp32_video_start(0);
refresh_times = 1;
gpio_set_level(DAC_VIDEO_SWITCH, 1);
return;
}
gpio_set_level(DAC_VIDEO_SWITCH, 0);
graph_video_stop();
esp32_video_stop();
}
void video_composite_sync_switch(bool flag) {
g_dac_video_sync = flag;
Expand Down Expand Up @@ -125,15 +125,15 @@ static void IRAM_ATTR disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * are
if(g_dac_video_render) {
//加了以后画面更稳定, 但影响UI流畅度
if(g_dac_video_sync && !sync_release_times) {
graph_video_sync();
esp32_video_sync();
}
if(sync_release_times) {
--sync_release_times;
}
lv_color_t *color_p_dac = color_p;
for(int y = area->y1; y <= area->y2; ++y) {
for(int x = area->x1; x <= area->x2; ++x) {
graph_video_set_color_8bit(x+50, y+80,
esp32_video_set_color(x+50, y+80,
lv_color_to8(*color_p_dac));
++color_p_dac;
}
Expand Down
152 changes: 0 additions & 152 deletions Firmware/ESP32/RX5808/main/video/bitmap.c

This file was deleted.

101 changes: 0 additions & 101 deletions Firmware/ESP32/RX5808/main/video/bitmap.h

This file was deleted.

Loading

0 comments on commit 5f44007

Please sign in to comment.