summaryrefslogtreecommitdiffstatshomepage
path: root/docs/pyboard/tutorial/accel.rst
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-12-15 11:49:22 +1100
committerDamien George <damien@micropython.org>2021-12-15 11:49:22 +1100
commitd9d67adef1113ab18f1bb3c0c6204ccb210a27be (patch)
treec1806e1109c043c89023253472d11909ccec7fa9 /docs/pyboard/tutorial/accel.rst
parent5ca56aaf166c3e7cda178dfe809f8caf599b1dff (diff)
downloadmicropython-d9d67adef1113ab18f1bb3c0c6204ccb210a27be.tar.gz
micropython-d9d67adef1113ab18f1bb3c0c6204ccb210a27be.zip
docs: Remove trailing spaces and convert tabs to spaces.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/pyboard/tutorial/accel.rst')
-rw-r--r--docs/pyboard/tutorial/accel.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/pyboard/tutorial/accel.rst b/docs/pyboard/tutorial/accel.rst
index 58170e74ff..dff71f2ee5 100644
--- a/docs/pyboard/tutorial/accel.rst
+++ b/docs/pyboard/tutorial/accel.rst
@@ -29,7 +29,7 @@ We will start by using the accelerometer to turn on a light if it is not flat. :
while True:
x = accel.x()
- if abs(x) > SENSITIVITY:
+ if abs(x) > SENSITIVITY:
light.on()
else:
light.off()
@@ -61,7 +61,7 @@ use the ``y()`` value and more LEDs we can turn the pyboard into a spirit level.
while True:
x = accel.x()
- if x > SENSITIVITY:
+ if x > SENSITIVITY:
xlights[0].on()
xlights[1].off()
elif x < -SENSITIVITY:
@@ -72,7 +72,7 @@ use the ``y()`` value and more LEDs we can turn the pyboard into a spirit level.
xlights[1].off()
y = accel.y()
- if y > SENSITIVITY:
+ if y > SENSITIVITY:
ylights[0].on()
ylights[1].off()
elif y < -SENSITIVITY: