Skip to content

Instantly share code, notes, and snippets.

@seancmonahan
seancmonahan / limit_first_layer_travel_speed.py
Created May 30, 2022 20:12
G-code postprocessing script to modify first layer travel speed
#!/usr/bin/env python3
# Copyright (c) 2022 Sean C. Monahan
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
@seancmonahan
seancmonahan / code.py
Created February 16, 2022 19:57
CircuitPython "keyboard" to type in a public key into the Raspberry Pi network installer
'''CircuitPython script that simulates a USB keyboard. It waits 5 seconds, and then
types in the contents of the string `public_key`. I wanted a way to easily enter
my SSH public key without manually typing it into the Raspberry Pi network installer.
Requires `adafruit_hid` from the Adafruit CircuitPython Bundle:
https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases
For a Raspberry Pi Pico running CircuitPython, I used
https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases/download/20220216/adafruit-circuitpython-bundle-7.x-mpy-20220216.zip

Keybase proof

I hereby claim:

  • I am seancmonahan on github.
  • I am seanahan (https://keybase.io/seanahan) on keybase.
  • I have a public key ASBx_MMeA65hBdwy1ysNldeRIFfEYbJC-zyyQOYEVoe5fgo

To claim this, I am signing this object: