# Multi-device vs. separate driver module - community preference/standards?

**URL:** <https://discuss.px4.io/t/multi-device-vs-separate-driver-module-community-preference-standards/49051>\
**Category:** PX4 Autopilot\
**Created:** [June 2, 2026, 1:28pm UTC](https://discuss.px4.io/t/multi-device-vs-separate-driver-module-community-preference-standards/49051 "2026-06-02T13:28:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![azaloudek](https://discuss.px4.io/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@azaloudek](https://discuss.px4.io/u/azaloudek)\
**Post date:** [June 2, 2026, 1:28pm UTC](https://discuss.px4.io/t/multi-device-vs-separate-driver-module-community-preference-standards/49051/1 "2026-06-02T13:28:39Z")

</div>

I’m looking to add support for the LPS22HH barometer. Its interface is very similar to the LPS22HB, and I was able to easily fork the existing driver to add support (only needed to change the device ID and I2C address).

For contributing this driver, is there an established preference for adding this as a new driver module or extending the existing LPS22HH with another argument to specify the variant?

I’ve occasionally seen this multi-device pattern with devices like the ICM42688/6. However, it seems quite rare so I’d appreciate input from the community on which direction is preferred.

---

<div class="post-metadata">

**Author:** ![dakejahl](https://discuss.px4.io/user_avatar/discuss.px4.io/dakejahl/32/20420_2.png) [@dakejahl](https://discuss.px4.io/u/dakejahl)\
**Post date:** [June 2, 2026, 9:46pm UTC](https://discuss.px4.io/t/multi-device-vs-separate-driver-module-community-preference-standards/49051/2 "2026-06-02T21:46:51Z")

</div>

Use the same driver and probe for both. The HB is higher accuracy part, so you’ll probably have to do more than just the I2C addr and WHO\_AM\_I? We’re tight on flash so it’s important to reuse drivers for similar parts like this.

---

<div class="post-metadata">

**Author:** ![azaloudek](https://discuss.px4.io/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@azaloudek](https://discuss.px4.io/u/azaloudek)\
**Post date:** [June 3, 2026, 2:27pm UTC](https://discuss.px4.io/t/multi-device-vs-separate-driver-module-community-preference-standards/49051/3 "2026-06-03T14:27:53Z")

</div>

I appreciate the feedback here, and I didn’t fully appreciate the flash limitations as I’m using a V6XRT based system. I’ll plan to proceed with integrating the changes I’ve made into the HH driver.

---

<div class="post-metadata">

**Author:** ![system](https://discuss.px4.io/uploads/default/original/3X/7/3/73ce918bdcd64854de904f0c8d9ab70ca9723f2a.png) [@system](https://discuss.px4.io/u/system)\
**Post date:** [June 10, 2026, 2:28pm UTC](https://discuss.px4.io/t/multi-device-vs-separate-driver-module-community-preference-standards/49051/4 "2026-06-10T14:28:28Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
