Skip to content

Cole gbk test#2012

Open
wangli65535 wants to merge 20 commits intodev-nexfirmware-evt1from
Cole_gbk_test
Open

Cole gbk test#2012
wangli65535 wants to merge 20 commits intodev-nexfirmware-evt1from
Cole_gbk_test

Conversation

@wangli65535
Copy link
Copy Markdown
Collaborator

No description provided.

- Updated app.overlay to configure external flash settings for font storage.
- Added new Kconfig options for runtime font loading and XIP usage.
- Introduced shell commands for font storage management, including info and read operations.
- Implemented font loading from external flash with support for XIP and RAM.
- Modified display control to support GBK text rendering and improved command handling.

Files modified: 20, New files: 8
… commands

- Updated mos_font_storage.c and mos_xbf_font.c to support an additional font storage partition (PM_FONT_STORAGE2).
- Modified display_config.c to streamline font loading for CJK text, removing the XBF font preference due to initialization issues.
- Adjusted mos_lvgl_display.c to set the display brightness to 100% on initialization.
- Enhanced shell_display_control.c with new commands for displaying binfont test text and CJK text from UTF-8 hex strings.
- Introduced cmd_font_storage_glyph in shell_font_storage.c to read glyph data by Unicode value, improving font management capabilities.
@wangli65535 wangli65535 requested a review from a team as a code owner February 10, 2026 08:17
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 10, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3ae12797-1001-4f44-b4fb-23288ee9d97b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch Cole_gbk_test

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 and usage tips.

@gitguardian
Copy link
Copy Markdown

gitguardian bot commented Feb 10, 2026

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
16694033 Triggered JSON Web Token b87c75b .github/workflows/china-deploy-static-websites-dev.yaml View secret
22988493 Triggered Generic High Entropy Secret b87c75b .github/workflows/china-deploy-static-websites-dev.yaml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@wangli65535 wangli65535 changed the base branch from main to dev-nexfirmware-evt1 February 10, 2026 08:19
Comment on lines +2 to +9
* @Author : Cole
* @Date : 2026-01-28 14:44:46
* @LastEditTime : 2026-02-07 15:00:36
* @FilePath : mos_fuel_gauge.c
* @Description :
*
* Copyright (c) MentraOS Contributors 2026
* SPDX-License-Identifier: Apache-2.0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

remove this please.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

okay

- Removed the FONT_STORAGE_PREFER_BINFONT option from Kconfig and adjusted related configurations in prj.conf.
- Updated pm_static.yml to reflect new partition sizes and addresses for font storage.
- Deleted unused bin_to_hex_font_storage.py script and related XBF font files to streamline the project.
- Enhanced display configuration to improve font loading and error handling for CJK text rendering.

Files modified: 8, Deleted files: 3
- Renamed CJK font references to GBK in Kconfig and display configuration files to reflect the new font handling approach.
- Adjusted display commands to improve clarity and functionality for GBK text rendering.
- Refactored code for better readability and consistency, including changes in function parameters and variable names related to font handling.

Files modified: 12
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Feb 28, 2026

Deploying mentra-live-ota-site with  Cloudflare Pages  Cloudflare Pages

Latest commit: fe71f2f
Status: ✅  Deploy successful!
Preview URL: https://d73fea64.mentra-live-ota-site.pages.dev
Branch Preview URL: https://cole-gbk-test.mentra-live-ota-site.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Feb 28, 2026

Deploying mentra-store-dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: fe71f2f
Status: ✅  Deploy successful!
Preview URL: https://5d04ed7a.augmentos-appstore-2.pages.dev
Branch Preview URL: https://cole-gbk-test.augmentos-appstore-2.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Feb 28, 2026

Deploying dev-augmentos-console with  Cloudflare Pages  Cloudflare Pages

Latest commit: fe71f2f
Status: ✅  Deploy successful!
Preview URL: https://75a676e0.dev-augmentos-console.pages.dev
Branch Preview URL: https://cole-gbk-test.dev-augmentos-console.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Feb 28, 2026

Deploying prod-augmentos-account with  Cloudflare Pages  Cloudflare Pages

Latest commit: fe71f2f
Status: ✅  Deploy successful!
Preview URL: https://9e7e76d2.augmentos-e84.pages.dev
Branch Preview URL: https://cole-gbk-test.augmentos-e84.pages.dev

View logs

wangli65535-coder and others added 13 commits March 2, 2026 14:23
- Introduced a new component for hinge fold detection, including the necessary CMake configuration and source files.
- Implemented the hinge fold service in `mos_hinge_fold.c` and its header in `mos_hinge_fold.h`.
- Updated `main.c` to initialize and start the hinge fold service.
- Added new functions for hinge state management and configuration.

Files modified: 6
- Removed PDM audio components and related configurations, transitioning to the GX8002 VAD for audio capture.
- Updated device tree overlays to configure GPIOs for the GX8002 and adjusted I2C settings.
- Introduced new shell commands for GX8002 control, including firmware version retrieval and I2S management.
- Updated font handling to use only 18pt fonts to optimize FLASH usage.

Files modified: 20
- Updated pointer declarations to use consistent spacing.
- Reorganized function parameters for better alignment.
- Added UTF-8 utility functions to check for ASCII and CJK characters.
- Enhanced the rendering function for GBK characters to support text color.
- Cleaned up comments and improved code structure for clarity.
- Ensured thread safety in text updates and rendering processes.
Performance improvements:
- Add batch glyph record read buffer to reduce SPI flash transactions
  (~165 reads/char → 1 read/char)
- Implement LVGL label object pool (256 slots) for GBK text rendering
- Add mutex-protected pending text buffer for deduplication
- Add performance timing logs for UI updates

Code cleanup:
- Remove 471 lines of verbose protobuf debug logging
- Remove 39 lines of I2S debug variables and macros
- Refactor protobuf message type identification
- Remove unnecessary C++ compatibility wrappers
- Remove unused pool statistics variables

Files modified: 6
Lines changed: +531 -670 (-139 net)
Include EN and ZH/EN font .bin and .hex artifacts under scripts so they can be uploaded and used directly for QSPI font provisioning.

Made-with: Cursor
Clarify that font_en_* binaries in scripts are generated from the Red Hat Display family.

Made-with: Cursor
Add font storage switching APIs/tests, integrate display-side language handling and shell controls, and update runtime/font configuration to support robust EN-first rendering during current rollout.

Made-with: Cursor
- Added functions for setting stereo shift and software depth offset in a6n.h.
- Updated prj.conf to remove unnecessary comments on LVGL display buffer settings.
- Implemented a warning cache for advance width logging in mos_binfont_lvgl.c to suppress duplicate warnings.
- Introduced new display commands for clearing the screen, invalidating full screen, and invalidating visible UI in mos_lvgl_display.h and mos_lvgl_display.c.
- Added support for processing display distance configuration in protobuf_handler.c, mapping distance to software depth offsets.
- Enhanced shell commands for display control, including depth adjustment, stereo shift, and distance settings.
- Updated command help messages to reflect new functionalities.
- Refactor protobuf text throttling/commit flow into a shared helper to reduce duplicate logic.
- Reduce protobuf text buffer size (768 chars) and keep pending/committed separation.
- Add generic `GX8002_UPGRADE_ENABLE` switch so any GX8002 upgrade (v08/v09) compiles the required boot blob.

Made-with: Cursor
- Updated app.overlay to disable GX8002 VAD path and enable PDM microphone configuration.
- Modified CMakeLists.txt to include PDM components and exclude GX8002.
- Adjusted prj.conf to reflect changes in audio configuration for PDM.
- Refactored main.c and shell_audio_control.c to support PDM audio streaming and remove references to GX8002.
- Enhanced audio control commands to reflect new PDM functionality and updated shell help messages.
- Cleaned up unused code and comments related to the GX8002 integration.
Align LC3 encoder channel config with mono PCM path to reduce audio artifacts in PDM capture on evt1.

Made-with: Cursor
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.

4 participants