From bcb3d016d81fa3f29a6afa9e63752510e5ce5d28 Mon Sep 17 00:00:00 2001 From: Vladimir Garistov Date: Thu, 29 Aug 2024 21:40:27 +0300 Subject: [PATCH] IMP: SPI digital pot example now works for both Arduino Mega2560 and Nano --- .../SPI/SPI_digital_pot_MCP4261/SPI_digital_pot_MCP4261.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Examples/SPI/SPI_digital_pot_MCP4261/SPI_digital_pot_MCP4261.ino b/Examples/SPI/SPI_digital_pot_MCP4261/SPI_digital_pot_MCP4261.ino index cbed6cc..7144242 100644 --- a/Examples/SPI/SPI_digital_pot_MCP4261/SPI_digital_pot_MCP4261.ino +++ b/Examples/SPI/SPI_digital_pot_MCP4261/SPI_digital_pot_MCP4261.ino @@ -1,7 +1,8 @@ #include #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) -- 2.39.5