Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
e00fb08f
Commit
e00fb08f
authored
Aug 26, 2014
by
Damien George
Browse files
stmhal, staccel.py: Style cleanup.
parent
f4ce26de
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/boards/STM32F4DISC/staccel.py
View file @
e00fb08f
...
...
@@ -39,7 +39,7 @@ class STAccel:
self
.
cs_pin
.
high
()
self
.
spi
=
SPI
(
1
,
SPI
.
MASTER
,
baudrate
=
328125
,
polarity
=
0
,
phase
=
1
,
bits
=
8
)
self
.
wr
(
LIS302DL_CTRL_REG1_ADDR
,
bytearray
([
LIS302DL_CONF
]))
if
(
self
.
read_id
()[
0
]
!=
LIS302DL_WHO_AM_I_VAL
)
:
if
self
.
read_id
()[
0
]
!=
LIS302DL_WHO_AM_I_VAL
:
raise
Exception
(
'LIS302DL accelerometer not present'
)
def
rd
(
self
,
addr
,
nbytes
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment