aboutsummaryrefslogtreecommitdiff
path: root/examples/BitmapIcons/bmp2hex.py
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-10-16 15:08:55 +0100
committerGitHub <noreply@github.com>2021-10-16 15:08:55 +0100
commit39e85dd687b68540ee7a8bfeeb0ba4db365cf2c4 (patch)
treeaf2d55c63dabc2bd28ecc7a53fdf9cc9978157db /examples/BitmapIcons/bmp2hex.py
parentfaccc17bbb10f95594a88f0a2b42d6cf89ebd0af (diff)
parent7ed06c1217b748edcd0a5c2bf5ff4722194c05e1 (diff)
Merge pull request #200 from mcauser/typos
Fix some typos
Diffstat (limited to 'examples/BitmapIcons/bmp2hex.py')
-rw-r--r--examples/BitmapIcons/bmp2hex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/BitmapIcons/bmp2hex.py b/examples/BitmapIcons/bmp2hex.py
index f30ce24..49e1c65 100644
--- a/examples/BitmapIcons/bmp2hex.py
+++ b/examples/BitmapIcons/bmp2hex.py
@@ -146,7 +146,7 @@ def bmp2hex(infile, tablewidth, sizebytes, invert, raw, named, double, xbm):
# Convert tablewidth to characters from hex bytes
tablewidth = int(tablewidth) * 6
- # Initilize output buffer
+ # Initialize output buffer
outstring = ''
# Open File
@@ -165,7 +165,7 @@ def bmp2hex(infile, tablewidth, sizebytes, invert, raw, named, double, xbm):
if ((values[0] != 0x42) or (values[1] != 0x4D)):
sys.exit ("Error: Unsupported BMP format. Make sure your file is a Windows BMP.")
- # Calculate width, heigth
+ # Calculate width, height
dataOffset = getLONG(values, 10) # Offset to image data
pixelWidth = getLONG(values, 18) # Width of image
pixelHeight = getLONG(values, 22) # Height of image