Stop requiring editing of example scripts
The example scripts include hardcoded values that do not work for everyone. Instead of requiring the files to be edited (and dirtying the git tree), allow them to take command-line arguments. Also adds better guidance for Mac OSX virtual serial ports.
This commit is contained in:
parent
6dfeffd9ca
commit
cd01bfe0ed
3 changed files with 20 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue