mirror of
https://github.com/Ralim/IronOS-Meta.git
synced 2025-04-15 11:27:48 +00:00
Update img2logo.py
This commit is contained in:
@@ -4,6 +4,7 @@ from __future__ import division
|
|||||||
import argparse
|
import argparse
|
||||||
import copy
|
import copy
|
||||||
import os, sys
|
import os, sys
|
||||||
|
from typing import Optional
|
||||||
from intelhex import IntelHex
|
from intelhex import IntelHex
|
||||||
from output_hex import HexOutput
|
from output_hex import HexOutput
|
||||||
from output_dfu import DFUOutput
|
from output_dfu import DFUOutput
|
||||||
@@ -243,7 +244,7 @@ def animated_image_to_bytes(
|
|||||||
def img2hex(
|
def img2hex(
|
||||||
input_filename,
|
input_filename,
|
||||||
device_model_name: str,
|
device_model_name: str,
|
||||||
merge_hex_file: str | None,
|
merge_hex_file: Optional[str],
|
||||||
preview_filename=None,
|
preview_filename=None,
|
||||||
threshold=128,
|
threshold=128,
|
||||||
dither=False,
|
dither=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user