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.

stepper_dac.h 998B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. stepper_dac.h - To set stepper current via DAC
  3. Part of Marlin
  4. Copyright (c) 2016 MarlinFirmware
  5. Marlin is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. Marlin is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Marlin. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #ifndef STEPPER_DAC_H
  17. #define STEPPER_DAC_H
  18. #include "dac_mcp4728.h"
  19. int dac_init();
  20. void dac_current_percent(uint8_t channel, float val);
  21. void dac_current_raw(uint8_t channel, uint16_t val);
  22. void dac_print_values();
  23. void dac_commit_eeprom();
  24. #endif // STEPPER_DAC_H