STAccel script in STM32F4 DISC
-
- Posts: 463
- Joined: Wed Apr 08, 2015 5:19 am
Re: STAccel script in STM32F4 DISC
You need to copy staccel.py to your flash on the Discovery board, of course.
Re: STAccel script in STM32F4 DISC
Yep, that fixed it. duh. I was mistakenly assuming that since the staccel.py was in the firmware directories that it might magically be accessible...SpotlightKid wrote:You need to copy staccel.py to your flash on the Discovery board, of course.
thanks
Re: STAccel script in STM32F4 DISC
I tried this on my board and get weird results:
Keeps toggling between those values just reading with the board flat on the table.
Never reads higher than 0.62976, moving board .. sometimes I get an in-between value.
My board id is returning 41 using "accel.read_id()"
Code: Select all
>>> accel.y()
0.0
>>> accel.y()
0.62976
Never reads higher than 0.62976, moving board .. sometimes I get an in-between value.
My board id is returning 41 using "accel.read_id()"