GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - BenMens/asyncgcodecli: A gcode client in python using asyncio

BranchesTags
Open more actions menu

Latest commit

 

History

58 Commits
58 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
asyncgcodecli
asyncgcodecli
 
 
docs
docs
 
 
examples
examples
 
 
sphinx-docs
sphinx-docs
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.nojekyll
.nojekyll
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Async gcode client

This is a async client library to control gcode severs. Currently only UArm Swift Pro is supported. This library uses asyncio.

Development

In VSCode create a new venv using Python: Create environment and use requirements.txt as dependencies.

Installation

pip3 install pyserial

pip3 install https://github.com/BenMens/asyncgcodecli/releases/latest/download/asyncgcodecli-1.0.0-py3-none-any.whl  

Update to latest version

pip3 install --upgrade https://github.com/BenMens/asyncgcodecli/releases/latest/download/asyncgcodecli-1.0.0-py3-none-any.whl  

Documentation

online documentation

Example

"""Example"""

from asyncgcodecli import UArm


async def move_script(uarm: UArm):
    """Script that moves the robot arm."""
    # set de robot arm mode to 0 (pomp)
    uarm.set_mode(0)

    uarm.move(150, 0, 150, 200)

    for _ in range(1, 5):
        uarm.set_buzzer(2000, 500)
        uarm.set_buzzer(5000, 500)

    # make a nice landing
    uarm.move(150, 0, 20, 200)
    await uarm.sleep(1)
    uarm.move(150, 0, 0, 10)

# Execute move_script on the UArm that is
# connected to /dev/cu.usbmodem14101
UArm.execute_on_robotarm('/dev/cu.usbmodem14101', move_script)

About

A gcode client in python using asyncio

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.