Lego sensor block


#1

Hello… New to this forum…
Not sure where to post my issue, but related to LEGO EV3 programming block…

Using one of your FREE (Thank You) ev3 blocks… I2C Write block…

Have issue… Attached Scope to I2C (clock & data)…

Writes data from 0 to 127 (0 to 0x7F) just fine…
HOWEVER… as soon as I try to send ANY byte with the MSB SET - 128 to 255 (0x80 to 0xFF),
the data sent is always 127 (0x7F)…

Have you seen this before??

Is this an issue with your block or an issue with the EV3??

Thank You… Mark A Nichols


#2

Hey Mark, wow it’s been a while since I’ve looked at lego i2c. Yes. The MSB is reserved on lego sensors. If you check out there hardware and software documentation, they save either the LSB or MSB.

For the EV3, I think botbench has a complete set of downloads here: http://botbench.com/blog/2014/02/19/ev3-build-your-own-block-and-hdksdk-docs-available/