* fix ePaper for opendtufusion_v2.x boards (Software SPI)
This commit is contained in:
lumapu 2023-08-27 22:33:01 +02:00
parent 2c6094358f
commit abdf2185ff
7 changed files with 381 additions and 7 deletions

View file

@ -3,7 +3,11 @@ import subprocess
Import("env")
def applyPatch(libName, patchFile):
# save current wd
start = os.getcwd()
if os.path.exists('.pio/libdeps/' + env['PIOENV'] + '/' + libName) == False:
print("path '" + '.pio/libdeps/' + env['PIOENV'] + '/' + libName + "' does not exist")
return
os.chdir('.pio/libdeps/' + env['PIOENV'] + '/' + libName)
@ -18,6 +22,11 @@ def applyPatch(libName, patchFile):
else:
print('applying \'' + patchFile + '\' failed')
os.chdir(start)
# list of patches to apply (relative to /src)
applyPatch("ESP Async WebServer", "../patches/AsyncWeb_Prometheus.patch")
if env['PIOENV'] == "opendtufusionv1":
applyPatch("GxEPD2", "../patches/GxEPD2_SW_SPI.patch")