Skip to content

Tab5, CoreS3, StackChan and app icons - #662

Merged
KenVanHoeylandt merged 7 commits into
TactilityProject:mainfrom
Shadowtrance:wip
Sep 25, 2026
Merged

KenVanHoeylandt merged 7 commits into
TactilityProject:mainfrom
Shadowtrance:wip

Conversation

@Shadowtrance

@Shadowtrance Shadowtrance commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Added GC0308 camera driver and wired to CoreS3/Stackchan Changed Stackchan touch to the more reliable ft5x06 driver

Added rotation offset to sc2356 camera driver
Added optional properties to IMU drivers for swap-xy, swap-xz, swap-yz, invert-x, invert-y, invert-z for accel.

fix(m5stack-tab5): hold LCD_RST with a weak pull-up on PI4IO P4

ST7121/ST7123 LCD_RST is a 1.8V pin, so a 3.3V push-pull drive can overvoltage the panel IO. Configure PI4IO-1 P4 as input with a weak pull-up instead. ILI9881C RST accepts 1.65V-3.3V, and all three panels were verified to initialize and run with this change. espressif/esp-bsp#827

Added a few extra shared font icons.
Updated esp_audio_codec to 2.5.0, beyond this version has breaking changes for older P4 chip revisions an will not work (yet).

App icons are back! Wired in app icons for known apps in the applist and settings. external/unknown apps fallback to LVGL_ICON_SHARED_DEPLOYED_CODE whic AppPackageList also has for consistency.

and stuff...
and possibly things...

Summary by CodeRabbit

  • New Features
    • Added camera support for CoreS3 and StackChan, including 320×240 previews and JPEG capture.
    • Added a camera app with capture progress and result notifications.
    • Added accelerometer orientation adjustments and camera rotation correction.
    • Added terminal, developer-logo, and camera icons; app and settings lists now display relevant icons.
  • Bug Fixes
    • Bluetooth status now reflects connected HID devices.
    • Improved Tab5 display reset handling and corrected camera rotation.

Added GC0308 camera driver and wired to CoreS3/Stackchan
Changed Stackchan touch to the more reliable ft5x06 driver

Added rotation offset to sc2356 camera driver
Added optional properties to IMU drivers for swap-xy, swap-xz, swap-yz, invert-x, invert-y, invert-z for accel.

fix(m5stack-tab5): hold LCD_RST with a weak pull-up on PI4IO P4

ST7121/ST7123 LCD_RST is a 1.8V pin, so a 3.3V push-pull drive can
overvoltage the panel IO. Configure PI4IO-1 P4 as input with a weak
pull-up instead. ILI9881C RST accepts 1.65V-3.3V, and all three
panels were verified to initialize and run with this change.
espressif/esp-bsp#827

Added a few extra shared font icons.
Updated esp_audio_codec to 2.5.0, beyond this version has breaking changes for older P4 chip revisions an will not work (yet).

App icons are back! Wired in app icons for known apps in the applist and settings.
external/unknown apps fallback to LVGL_ICON_SHARED_DEPLOYED_CODE whic AppPackageList also has for consistency.

and stuff...
@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 7e960a2e-6ff8-4da6-88d9-e7da981b6ce8

📥 Commits

Reviewing files that changed from the base of the PR and between a7a834d and d5f028b.

📒 Files selected for processing (6)
  • Drivers/gc0308-module/include/drivers/gc0308.h
  • Drivers/gc0308-module/module.yaml
  • Drivers/gc0308-module/source/gc0308.cpp
  • Tactility/Source/Tactility.cpp
  • Tactility/Source/app/camera/Camera.cpp
  • Tactility/Source/app/settings/Settings.cpp
💤 Files with no reviewable changes (1)
  • Drivers/gc0308-module/module.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
  • Drivers/gc0308-module/include/drivers/gc0308.h

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The changes add a GC0308 camera driver and app, enable camera capture on CoreS3 and StackChan, and add JPEG support dependencies. Three accelerometer drivers gain configurable axis swaps and inversions. The SC2356 driver gains a mounting rotation offset. Shared icons and app-list icons are updated. The Bluetooth status icon includes HID connectivity. Tab5 reset-pin handling and display-orientation detection are updated.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to d5f02

The prior camera-clock pin conflict is addressed, and no other actionable merge risk is established in the supplied changes.

Security Architecture Review

Security architecture risk: 🟡 Moderate · up to d5f02

The new camera path starts capture when its app window opens. The inspected launch path does not show a camera-specific permission check, although it also does not show remote image transfer or a confirmed authorization bypass. Simultaneous-use behavior remains uncertain.

Retained concerns

  • Medium · security · inferred: Opening the registered camera app starts sensor capture, while the inspected general app-launch and camera-app paths show no camera-specific admission check. Whether another app can use that path without an appropriate consent or permission transition remains unresolved; a bypass is not established.
Security review details

Security Blast Radius

  • inferred — The immediate exposure is camera capture and locally persisted images on devices with an active camera, rather than a demonstrated remote image sink. Effective access by other applications to the launch path or stored files was not established.

Security Findings and Attack Paths

  • inferred — A caller able to launch the camera app can cause its window lifecycle to initiate preview capture. No camera-specific check appears in the inspected launch-to-capture path; whether such a caller crosses a platform trust boundary remains unresolved.

Trust Boundaries and Controls

  • observed — The app does not use caller-supplied launch arguments for capture, checks frame size before copying, releases acquired frames, removes incomplete JPEG files, and waits for its camera task during normal widget teardown.

Resilience and Maintainability Implications

  • inferred — Normal task exit closes the sensor handle before completion is signaled, but task creation and semaphore creation results are unchecked. Failure recovery and simultaneous-instance containment are therefore not fully established.

Hardening Proposals

  • proposed — Establish and enforce the intended camera-launch consent rule and single-owner policy at the appropriate platform boundary; define recovery when camera-task creation fails and verify access expectations for saved images.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 2.08% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 48 functions across 28 files. (1 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title identifies the main affected devices and the app-icon changes. It is concise and directly related to the pull request, although it does not mention the camera and IMU details.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 2.08% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 48 functions across 28 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@KenVanHoeylandt KenVanHoeylandt changed the title Stuff and things Tab5, CoreS3, StackChan and app icons Sep 25, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 4


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: caf8b74a-7056-4f54-985c-fa918a6ec773

📥 Commits

Reviewing files that changed from the base of the PR and between e42545d and b52fb62.

📒 Files selected for processing (46)
  • Devices/m5stack-cores3/device.properties
  • Devices/m5stack-cores3/devicetree.yaml
  • Devices/m5stack-cores3/m5stack,cores3.dts
  • Devices/m5stack-stackchan/device.properties
  • Devices/m5stack-stackchan/devicetree.yaml
  • Devices/m5stack-stackchan/m5stack,stackchan.dts
  • Devices/m5stack-tab5/Source/devices/display_detect.cpp
  • Devices/m5stack-tab5/m5stack,tab5.dts
  • Drivers/bmi270-module/bindings/bosch,bmi270.yaml
  • Drivers/bmi270-module/include/drivers/bmi270.h
  • Drivers/bmi270-module/source/bmi270.cpp
  • Drivers/gc0308-module/CMakeLists.txt
  • Drivers/gc0308-module/LICENSE-Apache-2.0.md
  • Drivers/gc0308-module/README.md
  • Drivers/gc0308-module/bindings/galaxycore,gc0308.yaml
  • Drivers/gc0308-module/devicetree.yaml
  • Drivers/gc0308-module/include/bindings/gc0308.h
  • Drivers/gc0308-module/include/drivers/gc0308.h
  • Drivers/gc0308-module/include/gc0308_module.h
  • Drivers/gc0308-module/source/gc0308.cpp
  • Drivers/gc0308-module/source/module.cpp
  • Drivers/mpu6886-module/bindings/invensense,mpu6886.yaml
  • Drivers/mpu6886-module/include/drivers/mpu6886.h
  • Drivers/mpu6886-module/source/mpu6886.cpp
  • Drivers/qmi8658-module/bindings/qst,qmi8658.yaml
  • Drivers/qmi8658-module/include/drivers/qmi8658.h
  • Drivers/qmi8658-module/source/qmi8658.cpp
  • Drivers/sc2356-module/bindings/smartsens,sc2356.yaml
  • Drivers/sc2356-module/include/drivers/sc2356.h
  • Drivers/sc2356-module/source/sc2356.cpp
  • Drivers/st7123-module/README.md
  • Modules/lvgl-module/assets/generate-all.py
  • Modules/lvgl-module/include/lvgl/icons/shared.h
  • Modules/lvgl-module/source-fonts/material_symbols_shared_12.c
  • Modules/lvgl-module/source-fonts/material_symbols_shared_16.c
  • Modules/lvgl-module/source-fonts/material_symbols_shared_20.c
  • Modules/lvgl-module/source-fonts/material_symbols_shared_24.c
  • Modules/lvgl-module/source-fonts/material_symbols_shared_32.c
  • Tactility/Source/Tactility.cpp
  • Tactility/Source/app/applist/AppList.cpp
  • Tactility/Source/app/apppackagelist/AppPackageList.cpp
  • Tactility/Source/app/camera/Camera.cpp
  • Tactility/Source/app/settings/Settings.cpp
  • Tactility/Source/service/statusbar/Statusbar.cpp
  • Tactility/Source/settings/DisplaySettings.cpp
  • Tactility/idf_component.yml

Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Comment thread Devices/m5stack-cores3/m5stack,cores3.dts Outdated
Comment thread Devices/m5stack-tab5/Source/devices/display_detect.cpp Outdated
Comment thread Drivers/sc2356-module/source/sc2356.cpp
Comment thread Tactility/Source/app/camera/Camera.cpp Outdated
Comment thread Tactility/Source/app/camera/Camera.cpp Outdated
Comment thread Drivers/gc0308-module/include/drivers/gc0308.h Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 4f05c0e4-d7de-4303-9d1e-e87cfe02f7fc

📥 Commits

Reviewing files that changed from the base of the PR and between b52fb62 and a7a834d.

📒 Files selected for processing (11)
  • Devices/m5stack-cores3/m5stack,cores3.dts
  • Devices/m5stack-cores3/module.yaml
  • Devices/m5stack-stackchan/m5stack,stackchan.dts
  • Devices/m5stack-stackchan/module.yaml
  • Devices/m5stack-tab5/Source/devices/display_detect.cpp
  • Drivers/gc0308-module/bindings/galaxycore,gc0308.yaml
  • Drivers/sc2356-module/source/sc2356.cpp
  • Tactility/Source/Tactility.cpp
  • Tactility/Source/app/applist/AppList.cpp
  • Tactility/Source/app/camera/Camera.cpp
  • Tactility/Source/app/settings/Settings.cpp

Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review.

Comment thread Drivers/gc0308-module/bindings/galaxycore,gc0308.yaml
Comment thread Tactility/Source/app/camera/Camera.cpp
Comment thread Tactility/Source/app/settings/Settings.cpp Outdated
@KenVanHoeylandt
KenVanHoeylandt merged commit 7c508bb into TactilityProject:main Sep 25, 2026
65 checks passed
@KenVanHoeylandt

Copy link
Copy Markdown
Contributor

Thank you!!

@Shadowtrance
Shadowtrance deleted the wip branch September 25, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants