rstackhouse / node-ev3-serial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

commandBuilder

Provides a DSL-like interface for creating binary commands (using Lego's protocol) to send over serial (USB or bluetooth) to an EV3 device.

Usage


var soundCmdBytes = 
    commandBuilder
        .sound()
        .tone()
        .volume(50)
        .frequency(1000)
        .duration(1000)
        .toBuffer();

About


Languages

Language:JavaScript 100.0%