summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2017-05-29 10:08:14 +0300
committerVille Skyttä <ville.skytta@iki.fi>2017-05-29 11:36:05 +0300
commitca16c3821053e5bf2b87aeb10007f73f31dc1eac (patch)
tree28b394ba7ef2e107c5fb3112c7ba97f01b6915f1 /examples
parente5e49bedcb0ed353ee22ba99078301d9ccd87dbf (diff)
various: Spelling fixes
Diffstat (limited to 'examples')
-rw-r--r--examples/conwaylife.py4
-rw-r--r--examples/embedding/Makefile.upylib2
-rw-r--r--examples/embedding/README.md2
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/conwaylife.py b/examples/conwaylife.py
index f99796175..323f42e85 100644
--- a/examples/conwaylife.py
+++ b/examples/conwaylife.py
@@ -8,7 +8,7 @@ lcd.light(1)
def conway_step():
for x in range(128): # loop over x coordinates
for y in range(32): # loop over y coordinates
- # count number of neigbours
+ # count number of neighbours
num_neighbours = (lcd.get(x - 1, y - 1) +
lcd.get(x, y - 1) +
lcd.get(x + 1, y - 1) +
@@ -25,7 +25,7 @@ def conway_step():
if self and not (2 <= num_neighbours <= 3):
lcd.pixel(x, y, 0) # not enough, or too many neighbours: cell dies
elif not self and num_neighbours == 3:
- lcd.pixel(x, y, 1) # exactly 3 neigbours around an empty cell: cell is born
+ lcd.pixel(x, y, 1) # exactly 3 neighbours around an empty cell: cell is born
# randomise the start
def conway_rand():
diff --git a/examples/embedding/Makefile.upylib b/examples/embedding/Makefile.upylib
index 873c0fd34..4663ad30a 100644
--- a/examples/embedding/Makefile.upylib
+++ b/examples/embedding/Makefile.upylib
@@ -170,7 +170,7 @@ SRC_QSTR_AUTO_DEPS +=
include $(MPTOP)/py/mkrules.mk
# Value of configure's --host= option (required for cross-compilation).
-# Deduce it from CROSS_COMPILE by default, but can be overriden.
+# Deduce it from CROSS_COMPILE by default, but can be overridden.
ifneq ($(CROSS_COMPILE),)
CROSS_COMPILE_HOST = --host=$(patsubst %-,%,$(CROSS_COMPILE))
else
diff --git a/examples/embedding/README.md b/examples/embedding/README.md
index 989ce1fc8..804dfede6 100644
--- a/examples/embedding/README.md
+++ b/examples/embedding/README.md
@@ -18,7 +18,7 @@ Building the example is as simple as running:
It's worth to trace what's happening behind the scenes though:
1. As a first step, a MicroPython library is built. This is handled by a
-seperate makefile, Makefile.upylib. It is more or less complex, but the
+separate makefile, Makefile.upylib. It is more or less complex, but the
good news is that you won't need to change anything in it, just use it
as is, the main Makefile shows how. What may require editing though is
a MicroPython configuration file. MicroPython is highly configurable, so