Send more easily commands to the Inkplate display via serial from node programs.
- Copy
inkplate-peripheral.js
in your desired directory - Include the script in your node app
const inkplate = require("./inkplate-peripheral");
- Install the Serialport library
npm i serialport
- Run the node app
node example.js
The peripheral mode commands come from the official Inkplate documentation:
https://inkplate.readthedocs.io/en/latest/peripheral-mode.html