INNER CODE UNIT · Python

r

Hykudoru/Pescado-Engine-Embedded-ESP32S3 · lib/TFT_eSPI-2.5.34/Tools/bmp2array4bit/bmp2array4bit.py:226

        r = r + 1
        i = i + 1
        outputString += "0x{:02x}, ".format(colorCode1)


    
#Once we've reached the end of our input string, pull the last two
#characters off (the last comma and space) since we don't need
#them. Top it off with a closing bracket and a semicolon.
outputString = outputString[:-2]
outputString += "};"

try:
    #Write the output string to our output file
    outfile = open(output, "w")
    outfile.write(outputString)
    outfile.close()
except:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…