02-16-2022, 03:10 AM
this is KC868-A4's pin define, i think you can use DS18B20 GPIO13 for relay.
#define DAC1 25
#define DAC2 26
#define ANALOG_A3 32
#define ANALOG_A4 33
#define ANALOG_A1 34
#define ANALOG_A2 35
const int Relay1 = 2;
const int Relay2 = 15;
const int Relay3 = 5;
const int Relay4 = 4;
const int DI1 = 36;
const int DI2 = 39;
const int DI3 = 27;
const int DI4 = 14;
const int BEEP = 18;
DS18B20 ds(13);
#define DAC1 25
#define DAC2 26
#define ANALOG_A3 32
#define ANALOG_A4 33
#define ANALOG_A1 34
#define ANALOG_A2 35
const int Relay1 = 2;
const int Relay2 = 15;
const int Relay3 = 5;
const int Relay4 = 4;
const int DI1 = 36;
const int DI2 = 39;
const int DI3 = 27;
const int DI4 = 14;
const int BEEP = 18;
DS18B20 ds(13);