M5Stack.js
SDK for controlling M5Stack with obnizOS. It works on both browser and nodejs.
Usage
HTML
obnizOS on M5Stack buttonA:
nodejs
const M5Stack = ; let m5 = 'OBNIZ_ID_HERE'; m5 { m5buttonA { console; } const servo = m5; servo; };
Installation
Browser
Add the following script tag to your html
<!-- m5stack.js use obniz.js. load obniz.js before m5stack.js -->
Nodejs
Install via npm
npm install m5stackjs
and import it to js file.
const M5Stack = require('m5stackjs');
Examples
Examples is here.
Document
More details, see M5Stackjs document or obniz document