Skip to content
Snippets Groups Projects
Commit ddb386c1 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Init DAC_DISABLE_PIN in dac_init

parent 6c608694
Branches
Tags
No related merge requests found
...@@ -51,6 +51,11 @@ ...@@ -51,6 +51,11 @@
const uint8_t dac_order[NUM_AXIS] = DAC_STEPPER_ORDER; const uint8_t dac_order[NUM_AXIS] = DAC_STEPPER_ORDER;
int dac_init() { int dac_init() {
#if PIN_EXISTS(DAC_DISABLE)
pinMode(DAC_DISABLE_PIN, OUTPUT);
digitalWrite(DAC_DISABLE_PIN, LOW); // set pin low to enable DAC
#endif
mcp4728_init(); mcp4728_init();
if (mcp4728_simpleCommand(RESET)) return -1; if (mcp4728_simpleCommand(RESET)) return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment