Skip to content

Instantly share code, notes, and snippets.

View bistory's full-sized avatar
😊

Thomas bistory

😊
View GitHub Profile
@bistory
bistory / gist:0d323488ede27b0b9e581a9f53116ac7
Created January 10, 2024 19:23
Tuto Ikea Vindriktning
# Ikea Vindriktning
uart:
rx_pin: 6
baud_rate: 9600
# SHT21
i2c:
sda: 8
scl: 10
scan: true
@bistory
bistory / PIS.cfg
Last active April 4, 2024 08:02
PIS.cfg
[mcu PIS]
# Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
serial: /dev/serial/by-id/xxxx
[adxl345]
cs_pin: PIS:gpio13
#spi_bus: spi1a
spi_software_sclk_pin: PIS:gpio10
spi_software_mosi_pin: PIS:gpio11
spi_software_miso_pin: PIS:gpio12
  1. Système à jour, Klipper à jour et dfu-util installé ( sudo apt-get install dfu-util )

  2. Installation de CanBoot

git clone https://github.com/Arksine/CanBoot
cd CanBoot
make menuconfig
make
@bistory
bistory / Procédure.md
Created April 6, 2023 09:54
Installer le Portable Input Shaper sur Klipper
  1. Flash du Portable Input Shaper
cd ~/klipper
make menuconfig

Choisir Raspberry Pi RP2040

make
@bistory
bistory / Procédure.md
Last active April 6, 2023 09:54
Installer l'ADXL345 sur Klipper
  1. Installer le Raspberry Pi comme processus Linux
cd ~/klipper/
sudo cp ./scripts/klipper-mcu.service /etc/systemd/system/
sudo systemctl enable klipper-mcu.service
cd ~/klipper/
make menuconfig
@bistory
bistory / macros_filament.cfg
Created February 11, 2023 21:06
Macros for loading and unloading filament with Klipper
[gcode_macro LOAD_FILAMENT]
gcode:
{% set speed = params.SPEED|default(300) %}
{% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity %}
SAVE_GCODE_STATE NAME=load_state
M300 # beep
G91
G92 E0
G1 E350 F{max_velocity} # fast-load
G1 E25 F{speed} # purge
@bistory
bistory / led_effects.cfg
Last active May 21, 2023 01:52
Klipper Led Effects example configuration
[led_effect logo_idle]
autostart: false
frame_rate: 24
leds:
neopixel:sb_leds (1-8)
layers:
breathing 10 1 top (0,0,.7)
[led_effect critical_error]
leds:
@bistory
bistory / macros_sb.cfg
Last active May 22, 2024 09:32
Voron StealthBurner LEDs config example
[gcode_macro CALIBRATE_Z]
rename_existing: BASE_CALIBRATE_Z
gcode:
STATUS_CALIBRATING_Z
BASE_CALIBRATE_Z
@bistory
bistory / macro_pa.cfg
Created July 24, 2022 09:34
Klipper Macro for easy Pressure Advance calibration
#
# This macro comes from VoronFR Discord : https://discord.gg/nmAdtqX6
# Pressure Advance calibration test.
#
# The main reason for this test is that the standard tuning tower provides ambigious, open to interpretation readings with a broad margin for error.
# This test provides control values next to the values being tested, so differences are easier to notice at a glance.
#
# Prints a series of bands, 6 lines per each, with the first 3 lines printed slowly and used as baseline/control and the other 3
# at two different speeds in the following sequence: 25% at 40mm/sec, 50% at 120mm/sec, 25% at 40mm/sec.
# Pressure Advance value is being increased for every band starting from 0.01 with 0.002 increments.
@bistory
bistory / printer.cfg
Created July 14, 2022 05:33
Section Led Control pour le fichier printer.cfg
#####################################################################
# LED Control
#####################################################################
[neopixel caselight]
pin: PD3
# The pin connected to the neopixel. This parameter must be
# provided.
chain_count: 54
# The number of Neopixel chips that are "daisy chained" to the