pyLine: Testing the Rotation Sensor

As you may know, I’m becoming more and more addicted to new technology and when this kind of things start to happened, you try to understand every new piece that appears.

Well… Rotation Sensors are not something new, but it’s my first time having a cell phone that contains one… So, I has decided to code a simple script to test it.

The script is coded on PyS60 (Python for S60), and it’s a simple line that always stays on vertical position :)

Rotation Sensor handles the X, Y and Z axis, but at this simple demo I has been working only with the Z one. I let you a picture showing what does the program do:

pyLine demo usage

pyLine demo usage

Well… That’s all I hope you like it. I let you the link to download the Python file, here.

Leave a Reply