Skip to content

Instantly share code, notes, and snippets.

View jimmykl's full-sized avatar

Jimmy Kirkus-Lamont jimmykl

View GitHub Profile
@revdancatt
revdancatt / brush-server.py
Last active November 17, 2024 07:42
brush height python server for axidraw
from flask import Flask, request, jsonify
from pyaxidraw import axidraw
app = Flask(__name__)
app.config['JSONIFY_PRETTYPRINT_REGULAR'] = False
ad = axidraw.AxiDraw() # Initialize class
ad.interactive() # Enter interactive context
ad.options.units = 2 # work in millimeters
# ad.options.penlift = 3 # Uncomment if we are using the brushless servo
ad.options.speed_pendown = 20