12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef DCLOAD_CONFIG_H
- #define DCLOAD_CONFIG_H
- #define DC_LOAD_VER "36"
- #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 CURRENTCUTOFF_ADDRESS 0x00
- #define POWERCUTOFF_ADDRESS 0x20
- #define TEMPCUTOFF_ADDRESS 0x40
- #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_PIN 17 //analog pin A3 used as a digital pin to set cursor position (rotary encoder push button)
- #define LOADONOFF_PIN 15 //analog pin A1 used as a digital pin to set Load ON/OFF
- #define TRIGGERPULSE_PIN 16 //analog pin A2 used as a digital pin for trigger pulse input in transient mode
- #define FAN_PIN 3 //digital pin 3 for fan control output (changed to Digital pin 3)
- #define TEMP_PIN 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
- #define PIC_USB_GRAY 2
- #define PIC_USB_BLACK 3
- #define LiPoCutOffVoltage 3.0 //set cutoff voltage for LiPo battery
- #define LiFeCutOffVoltage 2.8 //set cutoff voltage for LiFe battery
- #define NiCdCutOffVoltage 1.0 //set cutoff voltage for NiCd battery
- #define ZiZnCutOffVoltage 1.0 //set cutoff voltage for ZiZn battery
- #define PbAcCutOffVoltage 1.75 //set cutoff voltage for PbAc battery
- #define DEBOUNCE_DELAY 50
- #endif // DCLOAD_CONFIG_H
|