Merge pull request #73 from joshuaflanagan/example_script_variables

Stop requiring editing of example scripts
This commit is contained in:
Jacob Alexander 2015-11-10 11:24:03 -08:00
commit 38516d5342
3 changed files with 20 additions and 5 deletions

View file

@ -110,7 +110,10 @@ class STLcdGraphic:
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