Mercurial > louis > kiibohd-controller
comparison 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 |
comparison
equal
deleted
inserted
replaced
397:cba3cefc6e56 | 399:3437e2246259 |
---|---|
108 display += "+\n" | 108 display += "+\n" |
109 | 109 |
110 return display | 110 return display |
111 | 111 |
112 | 112 |
113 filename = "ic_logo_lcd.bmp" | 113 filename = sys.argv[1] |
114 if filename is None: | |
115 print( "You must specify a bitmap filename. Try './bitmap2Struct.py ic_logo_lcd.bmp'" ) | |
116 sys.exit( 1 ) | |
114 max_height = 32 | 117 max_height = 32 |
115 max_width = 128 | 118 max_width = 128 |
116 x_offset = 0 | 119 x_offset = 0 |
117 y_offset = 0 | 120 y_offset = 0 |
118 output_image = STLcdGraphic( max_height, max_width ) | 121 output_image = STLcdGraphic( max_height, max_width ) |