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

Support DAC_OR_ADDRESS in Printrboard too

parent 593c8bf2
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,9 @@ ...@@ -50,7 +50,9 @@
#define GAINWRITE 0B11000000 #define GAINWRITE 0B11000000
// This is taken from the original lib, makes it easy to edit if needed // This is taken from the original lib, makes it easy to edit if needed
#define DAC_DEV_ADDRESS (BASE_ADDR | 0x00) // DAC_OR_ADDRESS defined in pins_BOARD.h file
#define DAC_DEV_ADDRESS (BASE_ADDR | DAC_OR_ADDRESS)
void mcp4728_init(); void mcp4728_init();
uint8_t mcp4728_analogWrite(uint8_t channel, uint16_t value); uint8_t mcp4728_analogWrite(uint8_t channel, uint16_t value);
......
...@@ -89,6 +89,7 @@ ...@@ -89,6 +89,7 @@
#define DAC_STEPPER_MAX 3520 #define DAC_STEPPER_MAX 3520
#define DAC_STEPPER_VREF 1 //internal Vref, gain 1x = 2.048V #define DAC_STEPPER_VREF 1 //internal Vref, gain 1x = 2.048V
#define DAC_STEPPER_GAIN 0 #define DAC_STEPPER_GAIN 0
#define DAC_OR_ADDRESS 0x00
#if DISABLED(SDSUPPORT) #if DISABLED(SDSUPPORT)
// these pins are defined in the SD library if building with SD support // these pins are defined in the SD library if building with SD support
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment