Skip to content

[lvgl] Document rotation and layout changes#6726

Open
clydebarrow wants to merge 3 commits into
esphome:nextfrom
clydebarrow:lvgl-lambda-rotation
Open

[lvgl] Document rotation and layout changes#6726
clydebarrow wants to merge 3 commits into
esphome:nextfrom
clydebarrow:lvgl-lambda-rotation

Conversation

@clydebarrow
Copy link
Copy Markdown
Contributor

@clydebarrow clydebarrow commented Jun 3, 2026

Description

Document new features allowing dynamic rotation and layout updates.

Related issue (if applicable): fixes

Pull request in esphome with YAML changes (if applicable):

Checklist

  • I am merging into next because this is new documentation that has a matching pull-request in esphome as linked above.
    or

  • I am merging into current because this is a fix, change and/or adjustment in the current documentation and is not for a new component or feature.

  • Link added in /src/content/docs/components/index.mdx when creating new documents for new components or cookbook.

New Component Images

If you are adding a new component to ESPHome, you can automatically generate a standardized black and white component name image for the documentation.

To generate a component image:

  1. Comment on this pull request with the following command, replacing component_name with your component name in lower_case format with underscores (e.g., bme280, sht3x, dallas_temp):

    @esphomebot generate image component_name
    
  2. The ESPHome bot will respond with a downloadable ZIP file containing the SVG image.

  3. Extract the SVG file and place it in the /public/images/ folder of this repository.

  4. Use the image in your component's index table entry in /src/content/docs/components/index.mdx.

Example: For a component called "DHT22 Temperature Sensor", use:

@esphomebot generate image dht22

Note: All images used in ImgTable components must be placed in /public/images/ as the component resolves them to absolute paths.

Copilot AI review requested due to automatic review settings June 3, 2026 01:41
@esphome esphome Bot added the next label Jun 3, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 3, 2026

Deploy Preview for esphome ready!

Name Link
🔨 Latest commit 87267ba
🔍 Latest deploy log https://app.netlify.com/projects/esphome/deploys/6a1f87c1c869380008207529
😎 Deploy Preview https://deploy-preview-6726--esphome.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents new LVGL capabilities around runtime rotation/orientation and updating layout options dynamically, aligning lvgl.update / lvgl.widget.update usage with orientation-driven UI reflow.

Changes:

  • Extend lvgl.widget.update documentation to include updating layout: options at runtime, with an example.
  • Add a new “Updating a layout at runtime” section describing which layout options can be changed via lvgl.update and lvgl.widget.update.
  • Update lvgl.display.set_rotation docs to mark rotation as templatable and add orientation change triggers (on_landscape / on_portrait).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/content/docs/components/lvgl/widgets.mdx Adds layout: support to lvgl.widget.update docs and provides an example.
src/content/docs/components/lvgl/layouts.mdx Introduces runtime layout update rules and examples for flex/grid option updates.
src/content/docs/components/lvgl/index.mdx Improves rotation action docs, adds lvgl.update layout docs, and documents orientation triggers.

Comment thread src/content/docs/components/lvgl/widgets.mdx
Comment thread src/content/docs/components/lvgl/index.mdx Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants