Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Extras

Additions to facilitate code modifications (for MS Win, similar can be done on Linux)

  • ehg.c (ehg.exe): Tool to generate C-code array from file' bytes Based on bin2array PROGMEM keyword can optionally be added.

  • rehg.c (rehg.exe): Tool to reverse C-code array generated by ehg.exe back to a file Based on c2bin First 4 lines of source are ignored, then parses the 0xHH - formated bytes until a } is found on separate new line.

Tools

  • TCC : Tiny C Compiler for ehg and rehg compiling on MS Win
  • 7-Zip Install 7z and use the included gzip as command line tool
  • Node.js Install Node with default settings, then run:

npm install html-minifier-terser -g, npm install -g github-files-fetcher

Batch files provided

  • do_emb.bat: Generates edit.htm.gz.h file for embedding to SPIFFSEditor.cpp as binary C array -
    You need to comment #define EDFS at SPIFFSEditor.cpp for this choice
  • do_ed_fs.bat: Alternatively, makes a gzip-ed edit.htm file for fs -
    uncomment #define EDFS for this choice. Saves about 4k of program flash storage.
  • undo.bat: Reverts edit.htm from C array header to file (still minified!)
  • update_ace.bat: Updates acefull.js.gz file from latest GitHub Ace sources