ads

vendredi 11 septembre 2015

IR Sensors API



First off, a little background.
The first few days after buying the Moto X I found MotoDisplay a little too sensitive and, to be honest, a little annoying that it would turn on all the time, but after a while I started getting used to it and subconsciously dependent on the way it works.
A few days ago I remembered using an application on my galaxy nexus which kind of did the same thing, and so I tried replacing MotoDisplay with one of the alternatives from the playstore. I chose AcDisplay and I really liked most of it's features (it's animations are beautiful). Except it doesn't use the IR sensors.
AcDisplay being an open source project, I thought to my self "I could probably implement a feature similar to MotoDisplay's extremely sensitive wave to wake up". So I looked for examples on how to use the IR Sensors and found none. I looked for an SDK/API and found nothing. I've looked at motorola's github and none of the repositories seemed to be what I wanted.

So the question is, how can I make a program that makes use of the Moto Xs IR sensors? Are there any resources on how to use them, or is this feature closed source and I'm not supposed to use it?
Apparently, apart from the official MotoDisplay, the only other project making use of these sensors is CM12 (which I haven't tried myself), which leads me to believe that it's not as simple as using the other, more common, sensors.



Aucun commentaire:

Enregistrer un commentaire