Skip to content

Instantly share code, notes, and snippets.

View rootiest's full-sized avatar
:octocat:
Printing printers

rootiest rootiest

:octocat:
Printing printers
View GitHub Profile
@rootiest
rootiest / keybase.md
Created September 10, 2019 04:12
keybase.md

Keybase proof

I hereby claim:

  • I am boogiemobile on github.
  • I am boogiemobile (https://keybase.io/boogiemobile) on keybase.
  • I have a public key ASCQyQH2DsXJ63-3aos1X_FHVXRBdSDeVt1-rFKEHTk28go

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am rootiest on github.
  • I am rootiest (https://keybase.io/rootiest) on keybase.
  • I have a public key ASCbm5p6MEjNoJE_JSM2rbXD_0tBwlUAzPVlRcOU5pGm0wo

To claim this, I am signing this object:

@rootiest
rootiest / numpad_layout.c
Last active May 28, 2021 15:51
My QMK NumPad layout
[_NUMPD] = LAYOUT_planck_1x2uC(KC_ESC, KC_HOME, KC_UP, KC_END, KC_PERC, KC_LCBR, KC_RCBR, KC_TAB, KC_P7, KC_P8, KC_P9, KC_BSPC, //
KC_TILD, KC_LEFT, KC_DOWN, KC_RGHT, KC_BSLS, KC_LBRC, KC_RBRC, KC_PSLS, KC_P4, KC_P5, KC_P6, KC_PMNS, //
KC_LSFT, KC_SLSH, LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), KC_LT, KC_GT, KC_PAST, KC_P1, KC_P2, KC_P3, KC_PPLS, //
TO(0), KC_LEAD, KC_LGUI, KC_LALT, KC_LCPO, KC_SPC, KC_RCPC, KC_HASH, KC_P0, KC_PDOT, KC_PENT),
/*
Numpad Layer [7]
* ,-----------------------------------------------------------------------------------.
* | Esc | Home | Up | End | % | { | } | Tab | 7 | 8 | 9 |BckSpc|
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | ~ | Left | Down | Right| \ | [ | ] | / | 4 | 5 | 6 | - |
bool encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) { /* First encoder */
switch (biton32(layer_state)) {
case 0:
if ((get_mods() & MOD_MASK_SHIFT)) { // Shifted
const uint8_t _real_mods = get_mods();
unregister_code16(KC_LSFT);
unregister_code16(KC_RSFT);
if (clockwise) {
tap_code16(KC_WH_D);
@rootiest
rootiest / zigbee_remote.json
Created July 21, 2021 22:35
Zigbee Remote Controller Node Red Flow
[
{
"id": "37d14000.39407",
"type": "tab",
"label": "Zigbee Remotes",
"disabled": false,
"info": ""
},
{
"id": "5464db46.065df4",
sensor:
- platform: bme680_bsec
temperature:
# Temperature in °C
name: "BME680 Temperature"
id: bme680_temp
sample_rate: lp
filters:
- median
@rootiest
rootiest / PREP_PRINT.cfg
Last active April 22, 2024 18:52
SuperSlicer Super Start for Klipper
[gcode_macro PREP_PRINT]
description: Loads and starts the print
variable_x_max: 0
variable_y_max: 0
variable_z_max: 0
variable_nozzle: 0
variable_fila_dia: 0
variable_bed_temp: 0
variable_extruder_temp: 0
variable_chamber_temp: 0
@rootiest
rootiest / BEGIN_LAYER.cfg
Last active May 13, 2022 09:12
M73 with layer progress
[gcode_macro BEGIN_LAYER]
description: Start a new layer and notify system
gcode:
#Get layer details from Slicer GCode
{% set CUR_LAYER = params.NUM|default(0)|float + 1 %}
{% set NUM_LAYERS = params.COUNT|default(0)|float %}
{% set LAYER_Z = params.ZLAY|default(0)|float %}
SET_GCODE_VARIABLE MACRO=PREP_PRINT VARIABLE=cur_layer VALUE={CUR_LAYER}
# X axis
[stepper_x]
step_pin: PC2
dir_pin: PB9
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: ^PA5
position_min: -4
position_endstop: -4
[delayed_gcode delayed_printer_off]
initial_duration: 600
gcode:
{% if printer.idle_timeout.state == "Idle" %}
M117 Shutdown
WLED_OFF
POWEROFF
{% endif %}
[gcode_macro POWEROFF]