# Get bytes from encoder hooked up to the I2C bus on a RPI3 using DeviceRead?

**URL:** <https://community.wolfram.com/t/get-bytes-from-encoder-hooked-up-to-the-i2c-bus-on-a-rpi3-using-deviceread/14000>\
**Category:** Questions\
**Tags:** control-systems, external-interfaces, raspberry-pi, connected-devices\
**Created:** [April 28, 2019, 8:01pm UTC](https://community.wolfram.com/t/get-bytes-from-encoder-hooked-up-to-the-i2c-bus-on-a-rpi3-using-deviceread/14000 "2019-04-28T20:01:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sturmann](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@sturmann](https://community.wolfram.com/u/sturmann)\
**Post date:** [April 28, 2019, 8:01pm UTC](https://community.wolfram.com/t/get-bytes-from-encoder-hooked-up-to-the-i2c-bus-on-a-rpi3-using-deviceread/14000/1 "2019-04-28T20:01:31Z")

</div>

Hi there,  
I have an encoder hooked up to the I2C bus on RPI 3. The Mathematica built-in i2c driver works fine and I can read the encoder (10 bytes). I’m using dat = Dynamic[DeviceRead[enc, 10]] and I see the numbers change as the encoder value changes. What I failed to do so far is to access the individual bytes in dat.  
I know that Dynamic[] is just for the front end to show dat and dat is not a List. Could anyone explain to me how to get to the bytes?  
Thanks,  
Laszlo
