accelerometer

41 views
Skip to first unread message

Rémi Bemol

unread,
Jul 10, 2018, 11:26:53 AM7/10/18
to QPython
I want to do a script witch make different actions depending of the accelerometers

I never programmed in Python. I took a small course, the language seem very easy. But still I'm blocked.

I read this tutorial : http://smartphonedaq.com/accelerometer.page
It's supposed to do it but when I run it I have an import error saying that there is no such thing as Android...
I'm using qpython I

I would be very grateful if somebody can help me.
I tried couple other tutorial but I always had an error message of that kind.


Thank you,
Rémi

/data/user/0/org.qpython.qpy/files/bin/qpython-android5.sh "/storage/emulated/0/qpython/remi1/2.py" && exit
ated/0/qpython/remi1/2.py" && exit <
Traceback (most recent call last):
File "/storage/emulated/0/qpython/remi1/2.py", line 1, in <module>
import android
ImportError: No module named android
1|j7xelte:/ $

River Yan

unread,
Jul 10, 2018, 9:38:48 PM7/10/18
to qpy...@googlegroups.com
I think you could use androidhelper instead of android.



--
You received this message because you are subscribed to the Google Groups "QPython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qpython+unsubscribe@googlegroups.com.
To post to this group, send email to qpy...@googlegroups.com.
Visit this group at https://groups.google.com/group/qpython.
To view this discussion on the web visit https://groups.google.com/d/msgid/qpython/a2ef3c75-54de-4eab-aec2-d80c269fcb52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rémi Bemol

unread,
Jul 10, 2018, 10:16:45 PM7/10/18
to QPython
It's working
Thank you so much.
I'm going to be able to play with that.

Could you explain why?

Remi

Reply all
Reply to author
Forward
0 new messages