Mercurial > louis > kiibohd-controller
diff Scan/STLcd/bitmap2Struct.py @ 399:3437e2246259
Merge pull request #73 from joshuaflanagan/example_script_variables
Stop requiring editing of example scripts
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Tue, 10 Nov 2015 11:24:03 -0800 |
parents | cba3cefc6e56 63b1d003fd50 |
children |
line wrap: on
line diff
--- a/Scan/STLcd/bitmap2Struct.py Sun Nov 01 17:19:09 2015 -0800 +++ b/Scan/STLcd/bitmap2Struct.py Tue Nov 10 11:24:03 2015 -0800 @@ -110,7 +110,10 @@ return display -filename = "ic_logo_lcd.bmp" +filename = sys.argv[1] +if filename is None: + print( "You must specify a bitmap filename. Try './bitmap2Struct.py ic_logo_lcd.bmp'" ) + sys.exit( 1 ) max_height = 32 max_width = 128 x_offset = 0