]> kolegite.com Git - vmks.git/commitdiff
IMP: SPI digital pot example now works for both Arduino Mega2560 and Nano
authorVladimir Garistov <vl.garistov@gmail.com>
Thu, 29 Aug 2024 18:40:27 +0000 (21:40 +0300)
committerVladimir Garistov <vl.garistov@gmail.com>
Thu, 29 Aug 2024 18:40:27 +0000 (21:40 +0300)
Examples/SPI/SPI_digital_pot_MCP4261/SPI_digital_pot_MCP4261.ino

index cbed6cc0e105e6018a8f168418bb5e2e8fd9f608..7144242b37bd0dafe0371fa7b8f5918aa2239ec9 100644 (file)
@@ -1,7 +1,8 @@
 #include <SPI.h>
 
 #define INPUT_PIN      A0
-#define CS_PIN    53
+#define CS_PIN    10
+//#define CS_PIN    53  // For Arduino Mega2560
 
 #define WRITE_CMD      ((uint16_t) 0x00)
 #define INCR_CMD       ((uint16_t) 0x01)