mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-16 18:36:10 +02:00
0.8.47
* reduce GxEPD2 lib to compile faster * upgraded GxEPD2 lib to `1.5.3` * updated espressif32 platform to `6.5.0` * updated U8g2 to `2.35.9` * started to convert deprecated functions of new ArduinoJson `7.0.0`
This commit is contained in:
parent
f096dc4c7e
commit
7a34b7e616
7 changed files with 82 additions and 34 deletions
41
scripts/reduceGxEPD2.py
Normal file
41
scripts/reduceGxEPD2.py
Normal file
|
@ -0,0 +1,41 @@
|
|||
import os
|
||||
import subprocess
|
||||
import glob
|
||||
Import("env")
|
||||
|
||||
def rmDirWithFiles(path):
|
||||
if os.path.isdir(path):
|
||||
for f in glob.glob(path + "/*"):
|
||||
os.remove(f)
|
||||
os.rmdir(path)
|
||||
|
||||
def clean(libName):
|
||||
# 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)
|
||||
os.chdir('src/')
|
||||
types = ('epd/*.h', 'epd/*.cpp') # the tuple of file types
|
||||
files = []
|
||||
for t in types:
|
||||
files.extend(glob.glob(t))
|
||||
|
||||
for f in files:
|
||||
if f.count('GxEPD2_150_BN') == 0:
|
||||
os.remove(f)
|
||||
|
||||
rmDirWithFiles("epd3c")
|
||||
rmDirWithFiles("epd4c")
|
||||
rmDirWithFiles("epd7c")
|
||||
rmDirWithFiles("gdeq")
|
||||
rmDirWithFiles("gdey")
|
||||
rmDirWithFiles("it8951")
|
||||
|
||||
os.chdir(start)
|
||||
|
||||
|
||||
clean("GxEPD2")
|
Loading…
Add table
Add a link
Reference in a new issue