hello,
with microbit I found methods to detect the current gesture or if the named gesture was active since the last call.
Is it possible with pyboard?
accelerometer.current_gesture
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: accelerometer.current_gesture
No, you'd have to code gesture recognition yourself.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: accelerometer.current_gesture
But in microbit it is in the firmware.. If it is opensource maybe someone can copy/paste something 
I am bad with C++

I am bad with C++
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: accelerometer.current_gesture
I doubt it's quite as simple as that. The Micro:Bit may not use the same accelerometer chip as the Pyboard. It might take someone a few days of effort to port the code, and the question is whether anyone with the necessary skill is motivated to do so.
I'd code it in MicroPython. The Pyboard has much more RAM than the Micro:Bit so it should be practicable, and your MicroPython code could be published and used or adapted by others. As far as I know nobody has yet done this, but my first step would be a search of this forum and a check on the Wiki to check for prior efforts.
An interesting project
I'd code it in MicroPython. The Pyboard has much more RAM than the Micro:Bit so it should be practicable, and your MicroPython code could be published and used or adapted by others. As far as I know nobody has yet done this, but my first step would be a search of this forum and a check on the Wiki to check for prior efforts.
An interesting project

Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: accelerometer.current_gesture
I found some info on using sensor data with machine learning.. will try to code something in the near future 
