My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #include "../inc/MarlinConfig.h"
  23. #if EITHER(HAS_COOLER, LASER_COOLANT_FLOW_METER)
  24. #include "cooler.h"
  25. Cooler cooler;
  26. #if HAS_COOLER
  27. uint8_t Cooler::mode = 0;
  28. uint16_t Cooler::capacity;
  29. uint16_t Cooler::load;
  30. bool Cooler::enabled = false;
  31. #endif
  32. #if ENABLED(LASER_COOLANT_FLOW_METER)
  33. bool Cooler::flowmeter = false;
  34. millis_t Cooler::flowmeter_next_ms; // = 0
  35. volatile uint16_t Cooler::flowpulses;
  36. float Cooler::flowrate;
  37. #if ENABLED(FLOWMETER_SAFETY)
  38. bool Cooler::flowsafety_enabled = true;
  39. bool Cooler::flowfault = false;
  40. #endif
  41. #endif
  42. #endif // HAS_COOLER || LASER_COOLANT_FLOW_METER