config.h 2.3 KB

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