This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |