NeoPixel

Posted by:

|

On:

|

Package neopixel
Version 1.0

Description

The NeoPixel service enables control of addressable RGB LEDs, perfect for creating stunning visual effects, indicators, or mood lighting in your robotics projects. This service allows you to easily manage LED strips or rings through RobotLab-X, integrating with other hardware components.

Prerequisites

The NeoPixel service depends on the npm library node-pixel and the necessary firmware.

Installation of both backpack and custom firmata are covered in detail in the Installation Guide.

Short version for node-pixel custom firmata.

npm install -g nodebots-interchange

Installing the firmware on a mega, make sure its connected

interchange -a mega -p /dev/ttyACM70 --firmata

Or on windows

interchange -a mega -p COM3 --firmata
const { type } = require("os")
const path = require("path")

function generateLaunchDescription() {
  const ld = {
    description: "Generated launch description",
    version: "0.0.1",
    actions: []
  }

  // Create a node with parameters and remappings
  const mouth = {
    package: "polly",
    name: "mouth",
    config: {
      voice: "Brian",
      secretAccessKey: "XXXXXXXXXXXXXXXXXXXXXXXX",
      secretId: "XXXXXXXXXXXX",
      format: "mp3"
    },
    listeners: {
      publishPlayAudioFile: [
        { topicMethod: "publishPlayAudioFile", callbackName: "audio", callbackMethod: "onPlayAudioFile" }
      ]
    }
  }

Related Links

Posted by

in