Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

nbarikipoulos/poppy-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Examples for Poppy Scripts

JavaScript Style Guide

A set of example scripts based on the poppy-robot-cli/core modules dedicated to Poppy Ergo Jr.

Prerequisite

These examples requires the Poppy software ^v4.0.0 installed on robot.

Install

  • Clone this repository anywhere on your computer:

    git clone https://github.com/nbarikipoulos/poppy-examples.git
  • Open a terminal in this folder and type:

    npm install
  • Then, to launch any of these examples, simply type:

    node path_to_script_file [option]

    to execute them.

Scripts

name desc. option
basic.js A first example introducing to script writing. Duration of the script (in s). Default is 5s.
tetris.js A more 'real-life' case. Duration of each step (in s). Default is 1s.
led.js Let's blink and activate the led of the motors to move. Color of the led (defaut is green).

Credits

License

  • Code is MIT licensed. See LICENSE.

Releases

No releases published

Packages

No packages published