# Troubles mapping phisical buttons

**URL:** <https://forum.realdash.net/t/troubles-mapping-phisical-buttons/10026>\
**Category:** RealDash CAN\
**Created:** [March 11, 2026, 5:46pm UTC](https://forum.realdash.net/t/troubles-mapping-phisical-buttons/10026 "2026-03-11T17:46:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppbayeta](https://forum.realdash.net/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@ppbayeta](https://forum.realdash.net/u/ppbayeta)\
**Post date:** [March 11, 2026, 5:46pm UTC](https://forum.realdash.net/t/troubles-mapping-phisical-buttons/10026/1 "2026-03-11T17:46:31Z")

</div>

Hello, i’m trying to map two real buttons to steering button 1 and 2, i can see the bits change in the can monitor, but doesnt work on the dash, i create a texto gauge to see if 0 changes to 1, but It doesnt.

 ![20260311_174552](https://forum.realdash.net/uploads/default/original/2X/b/bdb8999517093b534d8b1c504df0d25c13089b67.jpeg)  
 ![20260311_174547](https://forum.realdash.net/uploads/default/original/2X/4/40ac043a6d3118cb0006abd84c33402ac8a1d293.jpeg)  
They are in the marked byte, bit 4 and 5. One photo is one button, and the other photo, the other button.

This is my XML:  
value targetId=“188” offset=“3” startbit=“4” bitcount=“1”  
value targetId=“189” offset=“3” startbit=“5” bitcount=“1”

Other indicators in that frame like indicators, lights or door state, works fine  
Thanks

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [March 12, 2026, 8:03am UTC](https://forum.realdash.net/t/troubles-mapping-phisical-buttons/10026/2 "2026-03-12T08:03:22Z")

</div>

Based on your images, startbit should be 2 and 3. You count the bits right to left, first bit being bit 0.

Also, add length=“1”, just in case, so only that byte is read for the value.

```auto
targetId="188" offset="3" length="1" startbit="2" bitcount="1"
targetId="189" offset="3" length="1" startbit="3" bitcount="1"

```

---

<div class="post-metadata">

**Author:** ![ppbayeta](https://forum.realdash.net/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@ppbayeta](https://forum.realdash.net/u/ppbayeta)\
**Post date:** [March 12, 2026, 7:50pm UTC](https://forum.realdash.net/t/troubles-mapping-phisical-buttons/10026/3 "2026-03-12T19:50:37Z")

</div>

Ok, that worked, i’m trying to map Torque demand, It’s in the bytes 0 and 1, but only has 12 bits, not 16, byte 0 complete, and from byte 1, positions 7 6 5 and 4 bits. My car uses big endian.  
Is correct: startbit=“7” bitcount=“12” ?  
I’m learning, this from 0, sorry if It sounds so basic.

Thanks for the support.

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [March 13, 2026, 6:31am UTC](https://forum.realdash.net/t/troubles-mapping-phisical-buttons/10026/4 "2026-03-13T06:31:48Z")

</div>

Try reading full 16 bits in big endian, and then use bitmask to process only 12 bits:

```auto
offset="0" length="2" endianness="big" conversion="V &amp; 0xFFF"

```

---

<div class="post-metadata">

**Author:** ![ppbayeta](https://forum.realdash.net/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@ppbayeta](https://forum.realdash.net/u/ppbayeta)\
**Post date:** [March 21, 2026, 8:29pm UTC](https://forum.realdash.net/t/troubles-mapping-phisical-buttons/10026/5 "2026-03-21T20:29:14Z")

</div>

Sorry to say It doesnt’t work, but v\>\>4 did the job.  
Thanks for the support, i bought a one year license to use the debug data view and other utilities, It makes It easier
