Package Exports
- @background404/node-red-contrib-mcu-m5units
- @background404/node-red-contrib-mcu-m5units/node/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@background404/node-red-contrib-mcu-m5units) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-red-contrib-mcu-m5units
Node-RED nodes to use M5Stack Units with Node-RED MCU.
About
This package provides Node-RED nodes for integrating M5Stack Units with Node-RED MCU. It allows you to easily use various M5Stack sensors and modules within your Node-RED flows when using the MCU feature.
Installation
Install via npm:
npm install node-red-contrib-mcu-m5unitsOr install directly from the Node-RED palette manager.
Features
- Simple integration of M5Stack Units with Node-RED
- Support for various M5Stack sensors and modules
- Easy-to-use node interface
- Full localization support
Supported Units
- Joystick - Read analog joystick input (X, Y axes and button press)
Usage
- Install the package
- Add the desired M5Stack unit node to your flow
- Configure the node settings
- Connect to other nodes in your flow
Examples
Example flows are provided in the examples/ directory.
Project Structure
The project follows the structure recommended in the node creation guidelines:
node-red-contrib-mcu-m5units/
├── README.md # This document
├── package.json # Package settings
├── node/ # Node implementation directory
│ ├── <unit-name>/ # Each M5Stack unit has its own folder
│ │ ├── <unit-name>.js # Runtime implementation
│ │ ├── <unit-name>.html # Editor UI definition
│ │ └── locales/ # i18n dictionaries
│ └── index.js # Entry point for registering all nodes
├── manifest.json # Required configuration for MCU nodes
└── examples/ # Sample flows (JSON)