X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=Scan%2FSTLcd%2Fbitmap2Struct.py;h=6f2cbf128bf8c971766983c41485e2c234059774;hb=38516d53425a7258364a9b8b75d831c554040512;hp=f0790a29aa5f5b1ceb46da830ed81999076c08d2;hpb=11a44f0ea1964cd8f0ec9c99ad7b18460402cfc3;p=kiibohd-controller.git diff --git a/Scan/STLcd/bitmap2Struct.py b/Scan/STLcd/bitmap2Struct.py index f0790a2..6f2cbf1 100755 --- a/Scan/STLcd/bitmap2Struct.py +++ b/Scan/STLcd/bitmap2Struct.py @@ -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