Does micropython in STM32F4DISC support Accel?

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
shaoziyang
Posts: 250
Joined: Sun Apr 17, 2016 1:55 pm

Does micropython in STM32F4DISC support Accel?

Post by shaoziyang » Wed May 04, 2016 2:58 am

STM32F4DISC has LIS3DS sensor, but pyb.Accel() does not work.

User avatar
dhylands
Posts: 3146
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Does micropython in STM32F4DISC support Accel?

Post by dhylands » Wed May 04, 2016 3:03 am

The pyb.Accel doesn't work.

There is an staccel.py file in the stmhal/boards/STM32F4DISC directory which does support the accelerometer on the 407 discovery board:
https://github.com/micropython/micropyt ... staccel.py

SpotlightKid
Posts: 377
Joined: Wed Apr 08, 2015 5:19 am

Re: Does micropython in STM32F4DISC support Accel?

Post by SpotlightKid » Thu May 05, 2016 12:51 am

dhylands wrote:There is an staccel.py file in the stmhal/boards/STM32F4DISC directory which does support the accelerometer on the 407 discovery board:
https://github.com/micropython/micropyt ... staccel.py
Except this one doesn't work out of the box. Here's a fixed one:

https://github.com/SpotlightKid/micropy ... ster/accel

Post Reply