SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By fetchinson
#192684
Hi folks, I'm pretty much a newbie to all things embedded electronics, so please bare with me :)

I got a ZX Distance and Gesture Sensor https://www.sparkfun.com/products/12780 and a pyboard v1.1 from http://micropython.org and now try to see how it all works :) In order to keep things simple I'm accessing the sensor data through UART and it actually works very nicely, using the example C code from https://github.com/sparkfun/SparkFun_ZX ... X_Demo.ino I rewrote it in python for the pyboard and everything works as expected, I can read out the Z and X data, no problemo!

But I'm wondering what ZX_UART_RANGES is, on line 67 of the above example C code. I can read them out, they are two integers prefixed by ZX_UART_RANGES but what do these two numbers stand for?

Next will be setting up I2C and gestures (I understand gestures don't work with UART) probably will come back with more questions soon. Sparkfun looks like a really great community (this was my first post btw)!

Cheers,
Daniel