Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.08 KB

README.md

File metadata and controls

48 lines (38 loc) · 1.08 KB

Arduino HTML compiler

Simple Nodejs script to convert a html file to a fully Arduino compatible string

About The Project

The main motivation for this project is to have a simple script that allows you to easily convert your html file into a fully compatible Arduino file.

Getting Started

You need to copy package.json, compiler.js and index.html somewhere in your project

Installation

  • Install dependecies
    npm install
  • Change the build script under package.json to match your desired output file

Usage

  • Edit the index.html file to fit your needs
  • Compile the file
    npm run build

It will generates an output file with the following content:

String app = "your_compiled_html";

Now your can import the created file

#include "output.h"
...
server.send(200, "text/html", app);

License

Distributed under the MIT License.