Skip to content

Instantly share code, notes, and snippets.

@kochka
kochka / startup.gcode
Created March 8, 2020 18:28
Creality CR10S Pro startup gcode
M201 X500.00 Y500.00 Z100.00 E5000.00 ;Setup machine max acceleration
M203 X500.00 Y500.00 Z10.00 E50.00 ;Setup machine max feedrate
M204 P500.00 R1000.00 T500.00 ;Setup Print/Retract/Travel acceleration
M205 X8.00 Y8.00 Z0.40 E5.00 ;Setup Jerk
M220 S100 ;Reset Feedrate
M221 S100 ;Reset Flowrate
G28 ;Home
M420 S1 Z2 ;Enable ABL using saved Mesh and Fade Height
G4 P500 ;Dwell for 1/2 second
@kochka
kochka / led.rs
Created June 6, 2017 20:57
Rust - Blinking led
use std::thread;
use std::sync::{Arc, Mutex};
use std::time::Duration;
#[derive(Debug,Clone)]
pub struct Led { inner: Arc<Mutex<LedInner>> }
#[derive(Debug,Clone)]
struct LedInner {
gpio: u8,