sidoh / epaper_templates

Template-oriented driver for e-paper displays
MIT License
256 stars 27 forks source link

Having an issue compiling #103

Closed izacq closed 2 years ago

izacq commented 2 years ago

Great project, thanks! Been trying for a while to figure out the pio compilation to be able to add an additional GxEPD2 supported screen, but can't even figure it out without modifiying anything. I suspect some compatibility issue, can this project theoretically be compiled with PlatformIO Core v. 6.1.4, node v16.17.1?

Been getting this error:

` Executing task in folder epaper_templates: platformio run

Processing esp32 (platform: espressif32@~1.9.0; framework: arduino; board: esp32doit-devkit-v1)

Verbose mode can be enabled via -v, --verbose option Attempting to build webpage... b'\nup to date, audited 1291 packages in 9s\n\n66 packages are looking for funding\n run npm fund for details\n\n53 vulnerabilities (5 low, 11 moderate, 31 high, 6 critical)\n\nTo address issues that do not require attention, run:\n npm audit fix\n\nTo address all issues (including breaking changes), run:\n npm audit fix --force\n\nRun npm audit for details.\n' (node:13158) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead (Use node --trace-deprecation ... to show where the warning was created) TypeError: can only concatenate str (not "CalledProcessError") to str: File "/home/User/.platformio/penv/lib64/python3.10/site-packages/platformio/builder/main.py", line 186: env.SConscript(item, exports="env") File "/home/User/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Script/SConscript.py", line 597: return _SConscript(self.fs, *files, **subst_kw) File "/home/User/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Script/SConscript.py", line 285: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File "/home/User/epaper_templates/scripts/platformio/build_web.py", line 77: build_web() File "/home/User/epaper_templates/scripts/platformio/build_web.py", line 36: raise BaseException("Error building web assets: " + e) ===================== [FAILED] Took 16.50 seconds =====================`

izacq commented 2 years ago

Can be made to work. Was not really worth the hassle, to be made reliable, much more has to be done that simply adding few lines for the additional screen. A lightweighter solution with gxepd2 + a few lines of code were sufficient for me, also enabling to have custom fonts with higher resolution). If you're still interested, check out the fork by dobrishinov to build.