# Which board A or B

**URL:** <https://forum.hardwario.com/t/which-board-a-or-b/804>\
**Category:** CHESTER\
**Created:** [May 14, 2024, 8:43pm UTC](https://forum.hardwario.com/t/which-board-a-or-b/804 "2024-05-14T20:43:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![libertypeter](https://forum.hardwario.com/letter_avatar_proxy/v4/letter/l/bbe5ce/32.png) [@libertypeter](https://forum.hardwario.com/u/libertypeter)\
**Post date:** [May 14, 2024, 8:43pm UTC](https://forum.hardwario.com/t/which-board-a-or-b/804/1 "2024-05-14T20:43:24Z")

</div>

How do you tell the software that a particular board is in slot A or slot B?

---

<div class="post-metadata">

**Author:** ![hub.martin](https://forum.hardwario.com/user_avatar/forum.hardwario.com/hub.martin/32/631_2.png) [@hub.martin](https://forum.hardwario.com/u/hub.martin)\
**Post date:** [May 15, 2024, 7:21am UTC](https://forum.hardwario.com/t/which-board-a-or-b/804/2 "2024-05-15T07:21:03Z")

</div>

Hell Peter,

in software you define it by using suffix `_a` or `_b` in the CMakeLists.txt, see

> <https://github.com/hardwario/chester-sdk/blob/main/applications/control/CMakeLists.txt#L10>

Then in your code for example for X0 in slot B, you have to use `_b`:  
static const struct device \*dev = DEVICE\_DT\_GET(DT\_NODELABEL(ctr\_x0\_ **b** ));

A/B slot selection is important because X modules have different I2C address (if they use I2C) is slot B, usually readdressed by a solder bridge (`ADR` on silkscreen, see [X0](https://docs.hardwario.com/chester/extension-modules/chester-x0#module-drawing)). Also CHESTER SDK is using 4 GPIO signals for each X module and this suffix tells driver which wires use.

I2C addresses for slot A/B are explained also in this table. See also the I2C scan command to help troubleshoot if you have configured the model in your slot correctly.

> **[I²C Address Space | HARDWARIO Documentation](https://docs.hardwario.com/chester/hardware-description/i2c-address-space/)**
>
> This article provides an overview of the 7-bit address allocation on the I²C bus.

I see this is not explained in the documentation, I will add it soon there.

---

<div class="post-metadata">

**Author:** ![libertypeter](https://forum.hardwario.com/letter_avatar_proxy/v4/letter/l/bbe5ce/32.png) [@libertypeter](https://forum.hardwario.com/u/libertypeter)\
**Post date:** [May 15, 2024, 4:46pm UTC](https://forum.hardwario.com/t/which-board-a-or-b/804/3 "2024-05-15T16:46:57Z")

</div>

Hub.Martin, thank you for this detailed description. Iwllgo thought it later today and will probably comment some more. I was having a problem with the ADC in slot B and have now solved the issue ( I will post that later also).

---

<div class="post-metadata">

**Author:** ![hub.martin](https://forum.hardwario.com/user_avatar/forum.hardwario.com/hub.martin/32/631_2.png) [@hub.martin](https://forum.hardwario.com/u/hub.martin)\
**Post date:** [November 25, 2026, 8:43am UTC](https://forum.hardwario.com/t/which-board-a-or-b/804/4 "2026-11-25T08:43:42Z")

</div>


