Jacdac nodes for Node-RED
Перейти к файлу
pelikhan 0e7d585046 fix spi bridge link 2022-06-21 16:39:52 -07:00
.github/workflows use node 16 2022-03-22 04:35:17 -07:00
makecode/node-red-dongle move makecode out of src 2021-10-22 23:03:27 -07:00
src/nodes patch: use spi-device 2022-02-11 10:33:54 -08:00
utils added initial files 2021-05-10 08:16:19 -07:00
.eslintignore added initial files 2021-05-10 08:16:19 -07:00
.eslintrc.js Support for serial/esp (#15) 2021-10-20 22:21:43 -07:00
.gitignore add makecode proxy 2021-10-22 16:48:45 -07:00
.npmignore added initial files 2021-05-10 08:16:19 -07:00
.releaserc.json Support for serial/esp (#15) 2021-10-20 22:21:43 -07:00
CODE_OF_CONDUCT.md Support for serial/esp (#15) 2021-10-20 22:21:43 -07:00
CONTRIBUTING.md patch: updated readme 2022-02-11 20:46:13 -08:00
LICENSE Initial LICENSE commit 2021-05-10 08:09:46 -07:00
README.md fix spi bridge link 2022-06-21 16:39:52 -07:00
SECURITY.md Support for serial/esp (#15) 2021-10-20 22:21:43 -07:00
SUPPORT.md Support for serial/esp (#15) 2021-10-20 22:21:43 -07:00
package.json chore(release): 1.2.14 [skip ci] 2022-02-12 04:47:37 +00:00
rollup.config.editor.js added initial files 2021-05-10 08:16:19 -07:00
showcase.png adding image 2021-05-11 22:42:25 -07:00
tsconfig.json feat: node-red 2.0 (#5) 2021-08-01 21:32:34 +02:00
tsconfig.runtime.json Support for serial/esp (#15) 2021-10-20 22:21:43 -07:00
tsconfig.runtime.watch.json Support for serial/esp (#15) 2021-10-20 22:21:43 -07:00
yarn.lock patch: support for node >= 12 2022-02-11 11:04:24 -08:00

README.md

Node-RED Jacdac Node

Node-RED nodes to talk to Jacdac.

Jacdac is a bus-based plug-and-play hardware and software stack for microcontrollers and their peripherals. Jacdac is primarily designed for “modular electronics” scenarios that support rapid prototyping, creative exploration, making and learning through physical computing. Jacdac is designed to be cheap, flexible and extensible.

The nodes connect to a Jacdac bus via a USB and allow to listen for events or sensor readings.

A rendering of a bus of Jacdac devices

Install

Use Palette manager in node-red or run the following command in your Node-RED user directory - typically ~/.node-red

npm install node-red-contrib-jacdac

Jacdac hardware

In order to connect to Jacdac modules, you will need to connect to a USB module or a SPI bridge.

Nodes

jacdac-event

This node listens for Jacdac events and send them in the payload. You can browse the services specification catalog to discover which events are available.

jacdac-report

This node reads Jacdac registers and send them in the payload. You can browse the services specification catalog to discover which registers are avilable are available.

By default, the node looks for sensor reading, value and intensity registers. But you can override this behavior by customizing the register filters by name or code.

jacdac-command

This node sends Jacdac commands to services. The results of command can be inferred from the content of the registers.

You can browse the services specification catalog to discover which commands are available and how their payload should be formatted. The payload can either be a number, string or boolean for simple t ypes. Or an array or JSON object for complex requests.

Acknoledgments

This repo was built using the node-red TypeScript starter.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.