瀏覽代碼

DIGIPOT_I2C pins for SMOOTHIEBOARD (#19098)

Greg Nutt 4 年之前
父節點
當前提交
aa92fa7ee3
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 17 行新增0 行删除
  1. 17
    0
      Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h

+ 17
- 0
Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h 查看文件

114
   #error "Marlin's Smoothieboard support cannot drive your LCD."
114
   #error "Marlin's Smoothieboard support cannot drive your LCD."
115
 
115
 
116
 #endif
116
 #endif
117
+
118
+/**
119
+ * I2C Digipots - MCP4451
120
+ * Address 58 (2C << 1)
121
+ * Set from 0 - 127 with stop bit.
122
+ * (Ex. 3F << 1 | 1)
123
+ */
124
+#define DIGIPOTS_I2C_SCL                   P0_0
125
+#define DIGIPOTS_I2C_SDA_X                 P0_04
126
+#define DIGIPOTS_I2C_SDA_Y                 P0_10
127
+#define DIGIPOTS_I2C_SDA_Z                 P0_19
128
+#define DIGIPOTS_I2C_SDA_E0                P0_21
129
+#define DIGIPOTS_I2C_SDA_E1                P4_29
130
+
131
+#ifndef DIGIPOT_I2C_ADDRESS_A
132
+  #define DIGIPOT_I2C_ADDRESS_A             0x2C  // unshifted slave address (58 <- 2C << 1)
133
+#endif

Loading…
取消
儲存