# Incompatible pin types

**URL:** <https://forum.xod.io/t/incompatible-pin-types/5485>\
**Category:** XOD Programming Questions\
**Created:** [October 8, 2021, 3:16pm UTC](https://forum.xod.io/t/incompatible-pin-types/5485 "2021-10-08T15:16:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobherbert](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@bobherbert](https://forum.xod.io/u/bobherbert)\
**Post date:** [October 8, 2021, 3:16pm UTC](https://forum.xod.io/t/incompatible-pin-types/5485/1 "2021-10-08T15:16:05Z")

</div>

![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/8/81dfa2d2124e194a6035d65c3628d7a1828dae97.png)  
Nothing I have tried will let me link the output byte of the I2C read-byte to the input byte of the byte-to-bits. What am I missing? It seems so logical to me.

---

<div class="post-metadata">

**Author:** ![wayland](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/wayland/32/1590_2.png) [@wayland](https://forum.xod.io/u/wayland)\
**Post date:** [October 8, 2021, 6:00pm UTC](https://forum.xod.io/t/incompatible-pin-types/5485/2 "2021-10-08T18:00:51Z")

</div>

You need [xod/bits/u8-to-number](https://xod.io/libs/xod/bits/u8-to-number/)

![Screenshot 2021-10-08 at 18.53.37](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/4/4dbf0486fa27ae950226296f054dc2d8c866a2cd.png)

The input and outputs of **byte-to-bits** are of the datatype **number**. XOD doesn’t have a bit datatype. XOD’s datatypes are described here:  
[https://xod.io/docs/reference/data-types/](https://xod.io/docs/reference/data-types/)

---

<div class="post-metadata">

**Author:** ![bobherbert](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@bobherbert](https://forum.xod.io/u/bobherbert)\
**Post date:** [October 8, 2021, 6:28pm UTC](https://forum.xod.io/t/incompatible-pin-types/5485/3 "2021-10-08T18:28:47Z")

</div>

Thanks. That does it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [November 7, 2021, 6:29pm UTC](https://forum.xod.io/t/incompatible-pin-types/5485/4 "2021-11-07T18:29:02Z")

</div>

Closed on November 7, 2021, 6:29pm UTC

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