diff --git a/Marlin/src/HAL/STM32/timers.cpp b/Marlin/src/HAL/STM32/timers.cpp index 57f565e..70476ff 100644 --- a/Marlin/src/HAL/STM32/timers.cpp +++ b/Marlin/src/HAL/STM32/timers.cpp @@ -89,10 +89,10 @@ #define MCU_PITTA_TIMER 6 #endif #elif defined(STM32F401xC) || defined(STM32F401xE) - #define MCU_STEP_TIMER 9 + #define MCU_STEP_TIMER 9 // STM32F401 has no TIM6, TIM7, or TIM8 #define MCU_TEMP_TIMER 10 #elif defined(STM32F4xx) || defined(STM32F7xx) || defined(STM32H7xx) - #define MCU_STEP_TIMER 6 // STM32F401 has no TIM6, TIM7, or TIM8 + #define MCU_STEP_TIMER 6 #define MCU_TEMP_TIMER 14 // TIM7 is consumed by Software Serial if used. // PITTA #if HAS_PITTA_MMU diff --git a/Marlin/src/feature/pitta/pitta.cpp b/Marlin/src/feature/pitta/pitta.cpp index 4e5ce38..1c322f3 100644 --- a/Marlin/src/feature/pitta/pitta.cpp +++ b/Marlin/src/feature/pitta/pitta.cpp @@ -836,6 +836,90 @@ void ext_snap() ext_flat(INV_DIR, 60/* +pitta_extrude_return_spd */, 10000);// } break; + case 2: + { + ext_flat(INV_DIR, 1500, 300); + // ext_flat(INV_DIR, 1500, 2100); + + for (int i = 0; i<10; i++ ) { //10//pitta_val_3 + ext_flat(INV_DIR, 300, 15); + ext_flat(INV_DIR, 90, 60); + ext_flat(INV_DIR, 60, 110*5);// 110 + ext_flat(INV_DIR, 90, 60); + ext_flat(INV_DIR, 300, 15); + + ext_flat(NOM_DIR, 300, 15); + ext_flat(NOM_DIR, 150, 60); + ext_flat(NOM_DIR, 120, 110*5);//110 + ext_flat(NOM_DIR, 150, 60); + ext_flat(NOM_DIR, 300, 15); + } + + ext_flat(INV_DIR, 200, 20); + ext_flat(INV_DIR, 150, 30); + ext_flat(INV_DIR, 100, 40); + ext_flat(INV_DIR, 70, 50); + ext_flat(INV_DIR, 60, 60); + ext_flat(INV_DIR, 50, 70); + ext_flat(INV_DIR, 45, 80); + ext_flat(INV_DIR, 45, 10000); + ext_flat(INV_DIR, 60, 50); + ext_flat(INV_DIR, 100, 50); + ext_flat(INV_DIR, 200, 100); + ext_flat(INV_DIR, 1000, 4000); + ext_flat(INV_DIR, 200, 10); + ext_flat(INV_DIR, 150, 20); + ext_flat(INV_DIR, 100, 30); + ext_flat(INV_DIR, 70, 40); + ext_flat(INV_DIR, 60, 50); + ext_flat(INV_DIR, 50, 50); + ext_flat(INV_DIR, 45, 50); + + // ext_flat(INV_DIR, 500, 1000); + // ext_flat(INV_DIR, 70, 2000); + // for (int i = 0; i<1; i++ ) { + // ext_flat(INV_DIR, 300, 15); + // ext_flat(INV_DIR, 90, 60); + // ext_flat(INV_DIR, 60, pitta_val_2*500);// 110 + // ext_flat(INV_DIR, 90, 60); + // ext_flat(INV_DIR, 300, 15); + + // ext_flat(NOM_DIR, 300, 15); + // ext_flat(NOM_DIR, 150, 60); + // ext_flat(NOM_DIR, 120, pitta_val_2*500);//110 + // ext_flat(NOM_DIR, 150, 60); + // ext_flat(NOM_DIR, 300, 15); + // } + // ext_flat(NOM_DIR, 300, 4000); + // ext_flat(NOM_DIR, 100, 12000-750); + // ext_flat(NOM_DIR, 100, 350 + pitta_val_4*10);//15 + // ext_flat(NOM_DIR, 500+1000*pitta_val_5, 50); //5 + + + // for (int i = 0; i