Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
marlin-anet-a8
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
6c608694
Commit
6c608694
authored
Jun 27, 2016
by
Scott Lahteine
Browse files
Options
Downloads
Patches
Plain Diff
Support DAC_OR_ADDRESS in Printrboard too
parent
593c8bf2
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Marlin/dac_mcp4728.h
+3
-1
3 additions, 1 deletion
Marlin/dac_mcp4728.h
Marlin/pins_PRINTRBOARD_REVF.h
+1
-0
1 addition, 0 deletions
Marlin/pins_PRINTRBOARD_REVF.h
with
4 additions
and
1 deletion
Marlin/dac_mcp4728.h
+
3
−
1
View file @
6c608694
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Marlin/pins_PRINTRBOARD_REVF.h
+
1
−
0
View file @
6c608694
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment