1 Downloading a project file

Open the command prompt

git clone https://github.com/elephantrobotics/jsmycobot.git

2 Initializing a development program

Note: Open the command prompt in the downloaded project file.

<!-- initialize the program, then install and run all plug-ins required therefor -->
npm i

3 Initializing the program

<!-- Import plugins -->
const mycobot = require("mycobot")

<!-- initialize the program,mycobot.connect(serial port number, serial baud rate) -->
const obj = mycobot.connect("COM15",115200)

<!-- write in the first command, power up the robot arm and keep its current posture -->
obj.write(mycobot.powerOn())

results matching ""

    No results matching ""