Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 1.06 KB

README.md

File metadata and controls

51 lines (41 loc) · 1.06 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

Usage

  • Edit the index.html file to fit your needs
  • Compile the file
    npm run build
    Using options
    npm run build index.html output.h app

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.