mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-14 17:36:38 +02:00
0.7.42
* fix ePaper for opendtufusion_v2.x boards (Software SPI)
This commit is contained in:
parent
2c6094358f
commit
abdf2185ff
7 changed files with 381 additions and 7 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue