This SDK is currently out of maintenance.
M5StickC.js has been merged into obniz.js. Please use obnizjs v3.4.0 or later to be create M5StickC instance.
const m5 = new Obniz.M5StickC("obniz_id"); // on obniz.js v3.4.0 or later
SDK for controlling M5StickC with obnizOS. It works on both browser and nodejs.
See HTML Examples or Node.js Examples
Add the following script tag to your html
<script src="https://unpkg.com/obniz/obniz.js"></script> <!-- m5stickc.js use obniz.js. load obniz.js before m5stickc.js -->
<script src="https://unpkg.com/m5stickcjs/m5stickc.js"></script>
Install via npm
npm install m5stickcjs
and import it to js file.
const M5StickC = require('m5stickcjs');
Examples is here.
More details, see M5Stackjs document or obniz document