Skip to content

examples/calculator: Add an LVGL touchscreen calculator. - #3660

Open
aviralgarg05 wants to merge 1 commit into
apache:masterfrom
aviralgarg05:gsoc/calculator-example-pr10
Open

examples/calculator: Add an LVGL touchscreen calculator.#3660
aviralgarg05 wants to merge 1 commit into
apache:masterfrom
aviralgarg05:gsoc/calculator-example-pr10

Conversation

@aviralgarg05

@aviralgarg05 aviralgarg05 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Add a small LVGL touchscreen calculator with the usual four operations,
division-by-zero handling, and cooperative shutdown.

The layout scales to the framebuffer. EXAMPLES_CALCULATOR_YOFFSET can
reserve rows for a supervisor bar without coupling the example to NXStore.

Impact

  • New example, enabled through Kconfig
  • Requires LVGL, a framebuffer, and a touchscreen
  • Existing applications are unchanged

Testing

Host: macOS 26.5, arm64, xtensa-esp-elf-gcc 14.2.0.
Target: Waveshare ESP32-S3-Touch-LCD-7, 800x480 RGB565, GT911 touchscreen.

  • nxstyle, tools/checkpatch.sh, codespell, and git diff --check
  • built as a builtin and loadable module
  • built with a 36-row supervisor offset
  • checked arithmetic and division by zero on hardware
  • started and closed it repeatedly with no task left behind

PR verification Self-Check

  • This PR introduces one focused change.
  • I have updated all required description fields above.
  • I have reviewed and signed every commit.
  • This PR adheres to the current contribution and coding guidelines.
  • My PR is still work in progress.
  • My PR is ready for review and can be safely merged.

@aviralgarg05
aviralgarg05 force-pushed the gsoc/calculator-example-pr10 branch from 9372de5 to 30c0eb7 Compare August 14, 2026 15:12
@aviralgarg05 aviralgarg05 changed the title [WIP] examples/calculator: Add an LVGL touchscreen calculator. examples/calculator: Add an LVGL touchscreen calculator. Aug 14, 2026
@aviralgarg05
aviralgarg05 marked this pull request as ready for review August 14, 2026 15:14
@github-actions

Copy link
Copy Markdown

🔗 Cross-repo PR dependencies

The read-only Build run reported the following dependent PR(s) and fetched head SHA(s):

CI run: https://github.com/apache/nuttx-apps/actions/runs/31813509921

@aviralgarg05
aviralgarg05 force-pushed the gsoc/calculator-example-pr10 branch from f967ee4 to 158724f Compare August 15, 2026 10:02
Comment thread examples/calculator/Kconfig Outdated
Comment thread examples/calculator/calculator_main.c Outdated
@github-actions

Copy link
Copy Markdown

🔗 Cross-repo PR dependencies

The read-only Build run reported the following dependent PR(s) and fetched head SHA(s):

CI run: https://github.com/apache/nuttx-apps/actions/runs/31878524647

@aviralgarg05
aviralgarg05 force-pushed the gsoc/calculator-example-pr10 branch from 158724f to 6c17d59 Compare August 15, 2026 10:33
@github-actions

Copy link
Copy Markdown

🔗 Cross-repo PR dependencies

The read-only Build run reported the following dependent PR(s) and fetched head SHA(s):

CI run: https://github.com/apache/nuttx-apps/actions/runs/31879830797

@aviralgarg05
aviralgarg05 force-pushed the gsoc/calculator-example-pr10 branch 2 times, most recently from 4183800 to a235637 Compare August 15, 2026 11:44
@github-actions

Copy link
Copy Markdown

🔗 Cross-repo PR dependencies

The read-only Build run reported the following dependent PR(s) and fetched head SHA(s):

CI run: https://github.com/apache/nuttx-apps/actions/runs/31882801968

@aviralgarg05
aviralgarg05 force-pushed the gsoc/calculator-example-pr10 branch from a235637 to 1531f72 Compare August 16, 2026 15:31
@github-actions

Copy link
Copy Markdown

🔗 Cross-repo PR dependencies

The read-only Build run reported the following dependent PR(s) and fetched head SHA(s):

CI run: https://github.com/apache/nuttx-apps/actions/runs/31955922933

Add a touchscreen calculator with cooperative shutdown and board initialization through BOARDIOC_FINALINIT.

Signed-off-by: aviralgarg05 <gargaviral99@gmail.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