My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

string_format.h 1.7KB

1234567891011121314151617181920212223242526272829
  1. /*******************
  2. * string_format.h *
  3. *******************/
  4. /****************************************************************************
  5. * Written By Marcio Teixeira 2018 - Aleph Objects, Inc. *
  6. * *
  7. * This program is free software: you can redistribute it and/or modify *
  8. * it under the terms of the GNU General Public License as published by *
  9. * the Free Software Foundation, either version 3 of the License, or *
  10. * (at your option) any later version. *
  11. * *
  12. * This program is distributed in the hope that it will be useful, *
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  15. * GNU General Public License for more details. *
  16. * *
  17. * To view a copy of the GNU General Public License, go to the following *
  18. * location: <https://www.gnu.org/licenses/>. *
  19. ****************************************************************************/
  20. #pragma once
  21. void format_temp(char *str, const_celsius_float_t t1);
  22. void format_temp_and_idle(char *str, const_celsius_float_t t1);
  23. void format_temp_and_temp(char *str, const_celsius_float_t t1, const_celsius_float_t t2);
  24. void format_temp_and_material(char *str, const_celsius_float_t t1, const char *material);
  25. void format_position(char *str, float p, uint8_t decimals = 1);
  26. void format_position(char *str, float x, float y, float z);