Repository navigation
Conversation
The board matched no colour-LCD family, so getCapability() returned 128x64 depth 1 and the simulator drew a monochrome screen. Add T18H7 to the LcdDepth/LcdWidth/LcdHeight cases directly rather than to IS_FAMILY_T16: that family also drives BoardJson::afterLoadFixups(), which injects TILT_X/TILT_Y gyro inputs the T18H7 does not have. Also add it to IS_STM32H7 alongside t15pro/t22. The switch/pot defaults that main carries in the hw def JSON live in switch_config.py / pot_config.py on 2.12; without an entry every switch generated as default NONE and the flex inputs had no default at all. Also add T18H7 to the rotary encoder granularity list (same encoder as t15pro) and to build-companion.sh's simulator plugin list. 2.12 generates the hw def JSON from hal.h and has no hal_settings.h, so the hand-written boards/hw_defs/t18h7.json is dead there. Move the description into hal.h, drop the JSON, and regenerate the yaml map against 2.12. stm32_rgbleds.cpp is stm32_ws2812.cpp on 2.12; RGB_LEDS_900NS has no effect there as that driver's bit timing is fixed at 1250ns.
…roduct - Companion: include T18H7 in IS_FAMILY_HORUS_OR_T16 (as T15H7 is) so it is treated as a colour radio throughout, rather than special-casing only the LCD dimensions; exclude it from the TILT input fixup as it has no IMU - Companion: enable RotaryEncoderNavigation for T18H7 - USB product string was copied from T18 Duo; report "T18H7" as on main Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- lcd_driver_480x272: drop the unused lcdInit/Off/OnFunction pointers (never set, and all callers are commented out) and TouchControllerType - hal.h: the resource map was copied from T15H7; T18H7 has no FlySky hall gimbal DMA, DGONE or Bluetooth UART Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SH is a momentary switch, as on the T18. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Work done by 3djc - thx!