Does micropython in STM32F4DISC support Accel?
-
- Posts: 363
- Joined: Sun Apr 17, 2016 1:55 pm
Does micropython in STM32F4DISC support Accel?
STM32F4DISC has LIS3DS sensor, but pyb.Accel() does not work.
Re: Does micropython in STM32F4DISC support Accel?
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
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
-
- Posts: 463
- Joined: Wed Apr 08, 2015 5:19 am
Re: Does micropython in STM32F4DISC support Accel?
Except this one doesn't work out of the box. Here's a fixed one: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
https://github.com/SpotlightKid/micropy ... ster/accel