Skip to content

Help with Jc8012p4a1-guition-esp32-p4_esp32-c6 #38

Description

@lostboy86

Good morning, thanks for this awesome project.

I try this config for my Jc8012p4a1-guition-esp32-p4_esp32-c6

but cannot compile.

Anyone have the same product?

`esphome:
name: ${device_name}
comment: ${comment}
friendly_name: ${friendly_name}

api:
encryption:
key: ${api_password}

ota:

  • platform: esphome
    id: my_ota
    password: ${ota_password}

wifi:
networks:
- ssid: ${wifi_ssid}
password: ${wifi_password}

ap:
ssid: "${device_name} Fallback Hotspot"
password: ${wifi_password}

captive_portal:

logger:
hardware_uart: USB_SERIAL_JTAG
level: DEBUG
logs:
lvgl: INFO
display: INFO
app: DEBUG

esp32:
board: esp32-p4-evboard
cpu_frequency: 400MHz
flash_size: 16MB

framework:

components:
  - name: "espressif/esp_websocket_client"
    ref: 1.5.0

  - name: "espressif/esp-dsp"
    ref: 1.7.0

  - name: "bitbank2/jpegdec"
    source: https://github.com/strange-v/jpegdec-esphome

external_components:

esp_ldo:

  • channel: 3
    voltage: 2.5V

esp32_hosted:
variant: ESP32C6
reset_pin: 54
cmd_pin: 19
clk_pin: 18
d0_pin: 14
d1_pin: 15
d2_pin: 16
d3_pin: 17
active_high: true

psram:
speed: 200MHz

switch:

  • id: backlight_
    platform: gpio
    pin: GPIO23
    restore_mode: ALWAYS_ON

color:

  • id: my_red
    red: 100%
    green: 0%
    blue: 0%

-------------------------------

LVGL Display

-------------------------------

display:

  • platform: mipi_dsi
    model: JC8012P4A1
    id: my_display
    update_interval: 1s
    reset_pin: GPIO27

i2c:

  • id: i2c_bus
    sda: GPIO7
    scl: GPIO8
    #scan: true
    frequency: 400kHz

-------------------------------

Touchscreen

-------------------------------

touchscreen:

  • platform: gsl3680
    id: touchscreen_
    reset_pin: GPIO22
    interrupt_pin: GPIO21

    transform:
    swap_xy: false
    mirror_y: false

-------------------------------

LVGL

-------------------------------

lvgl:
buffer_size: 100%
byte_order: little_endian

touchscreens:
- touchscreen_id: touchscreen_

-------------------------------

Remote WebView

-------------------------------

remote_webview:
id: rwv
display_id: my_display
touchscreen_id: touchscreen_
device_id: monitorremoto

server: ""

url: ""

full_frame_tile_count: 1
max_bytes_per_msg: 61440
jpeg_quality: 85

-------------------------------

Current URL

-------------------------------

text:

  • platform: template
    id: rwv_url
    name: "URL"
    optimistic: true
    restore_value: false
    mode: TEXT
    min_length: 1

    set_action:

    • lambda: |-
      if (!id(rwv).open_url(std::string(x.c_str()))) {
      id(rwv).set_url(std::string(x.c_str()));
      ESP_LOGI("remote_webview", "URL queued (not connected): %s", x.c_str());
      `}``

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions