Skip to content

feat(radio): Adds Jumper T18 H7 support (2.12 backport) - #7888

Open
rotorman wants to merge 4 commits into
2.12from
jp-t18h7-2.12
Open

rotorman wants to merge 4 commits into
2.12from
jp-t18h7-2.12

Conversation

@rotorman

@rotorman rotorman commented Oct 8, 2026

Copy link
Copy Markdown
Member

Work done by 3djc - thx!

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.
@rotorman rotorman added hardware support backport/2.12 To be backported to a 2.12 release also. labels Oct 8, 2026
pfeerick and others added 3 commits October 11, 2026 04:59
…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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/2.12 To be backported to a 2.12 release also. hardware support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants