Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DIGIPOT_I2C pin numbers to pins_SMOOTHIEBOARD.h #19098

Merged
merged 2 commits into from Aug 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h
Expand Up @@ -114,3 +114,20 @@
#error "Marlin's Smoothieboard support cannot drive your LCD."

#endif

/**
* I2C Digipots - MCP4451
* Address 58 (2C << 1)
* Set from 0 - 127 with stop bit.
* (Ex. 3F << 1 | 1)
*/
#define DIGIPOTS_I2C_SCL P0_0
#define DIGIPOTS_I2C_SDA_X P0_04
#define DIGIPOTS_I2C_SDA_Y P0_10
#define DIGIPOTS_I2C_SDA_Z P0_19
#define DIGIPOTS_I2C_SDA_E0 P0_21
#define DIGIPOTS_I2C_SDA_E1 P4_29

#ifndef DIGIPOT_I2C_ADDRESS_A
#define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address (58 <- 2C << 1)
#endif