#ifndef DCLOAD_CONFIG_H #define DCLOAD_CONFIG_H #define I2C_EPROM_ADDRESS 0x57 #define I2C_MCP4725_ADDRESS 0x61 //the DAC I2C address with MCP4725 pin A0 set high #define I2C_MCP79410_ADDRESS 0x6f //0x6f is the default address for the MCP79410 Real Time Clock IC #define I2C_MCP342x_ADDRESS 0x68 //0x68 is the default address for the MCP3426 device #define rxPin 8 #define txPin 7 #define col_red 63488 #define col_green 1024 #define col_gray 50712 #define col_blue 1055 #define line_len 21 #define MODE_CC 1 #define MODE_CP 2 #define MODE_CR 3 #define MODE_TC 4 #define MODE_TP 5 #define MODE_TT 6 #define MODE_TL 7 #define MODE_BC 8 #define pinA 2 //digital pin (also interrupt pin) for the A pin of the Rotary Encoder (changed to digital pin 2) #define pinB 4 //digital pin for the B pin of the Rotary Encoder #define CursorPos 17 //analog pin A3 used as a digital pin to set cursor position (rotary encoder push button) #define LoadOnOff 15 //analog pin A1 used as a digital pin to set Load ON/OFF #define TriggerPulse 16 //analog pin A2 used as a digital pin for trigger pulse input in transient mode #define fan 3 //digital pin 3 for fan control output (changed to Digital pin 3) #define temperature A6 //analog pin used for temperature output from LM35 (was A0 previously but changed) #define setCurrentCalibrationFactor 0.980 //calibration adjustment - set as required if needed (was 1.000) #define displayCurrentCal 0.000 //calibration correction for LCD current display (was 0.040) #define ResistorCutOff 999 //maximum Resistor we want to deal with in software #define MCP4725_I2CADDR_DEFAULT (0x62) ///< Default i2c address #define MCP4725_CMD_WRITEDAC (0x40) ///< Writes data to the DAC #define MCP4725_CMD_WRITEDACEEPROM (0x60) ///< Writes data to the DAC and the EEPROM (persisting the assigned #endif // DCLOAD_CONFIG_H