From: Vladimir Garistov Date: Thu, 29 Aug 2024 18:40:27 +0000 (+0300) Subject: IMP: SPI digital pot example now works for both Arduino Mega2560 and Nano X-Git-Url: https://kolegite.com/gitweb/?a=commitdiff_plain;h=bcb3d016d81fa3f29a6afa9e63752510e5ce5d28;p=vmks.git IMP: SPI digital pot example now works for both Arduino Mega2560 and Nano --- 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)