:: Re: [maemo-leste] Display accelerom…
Top Pagina
Delete this message
Reply to this message
Auteur: Bastiaan van den Berg
Datum:  
Aan: maemo-leste
Onderwerp: Re: [maemo-leste] Display accelerometer, magnetometer, GPS data was Re: Grand plan to get make phones... phone (for Motorola Droid 4)
Not graphical , but :

Follow the iio buffer setup as on https://github.com/buzztiaan/droidsaber
, and then use the following in python;


while 1:

    with open('/dev/iio:device2', 'rb') as f:
        b = f.read(16)


    x = struct.unpack('h', b[0:2])[0] >> 4
    y = struct.unpack('h', b[2:4])[0] >> 4
    z = struct.unpack('h', b[4:6])[0] >> 4
    ts = struct.unpack('q', b[8:16])[0]


    print ts
    print x
    print y
    print z


On Wed, May 20, 2020 at 10:50 AM Pavel Machek <pavel@???> wrote:

> Hi!
>
> Are there any tools to display accelerometer status graphically in
> Leste? It should not be hard to code, but if it exists already...
>
> Are there any tools for compass? (Perhaps something from N9 as N900
> did not have one?) Perhaps also displaying Sun and Moon, as that's
> often better than than magnetometer.
>
> Is there anything packaged for GPS? I'm looking for basic "display
> sattelitte position and signal strengths", and maybe navigate to
> point.
>
> Best regards,
>
>
> Pavel
> --
> (english) http://www.livejournal.com/~pavelmachek
> (cesky, pictures)
> http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
> _______________________________________________
> Maemo-Leste mailing list
> Maemo-Leste@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/maemo-leste
>