Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated configs to separate header file, made adjustment to definition
- Loading branch information
Showing
3 changed files
with
50 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Configurable settings: | ||
|
||
#if !(defined(GAIN_FACTOR)) | ||
int GAIN_FACTOR = 2; // Gain adjustment factor. 0=3x, 1=3.5x, 2=4.33x, 3=6x, 4=11x | ||
#endif | ||
|
||
#ifndef senseThrs | ||
#define senseThrs 1450 | ||
#endif | ||
|
||
#ifndef compThrs | ||
#define compThrs 2850 | ||
#endif | ||
|
||
#ifndef InitCount | ||
#define InitCount 6 // Number of times to blink the LED on start | ||
#endif | ||
|
||
#if !(defined(LOOP_DUR)) | ||
int LOOP_DUR = 50; // duration of time between ADC checks and other loop functions | ||
#endif | ||
|
||
#if !(defined(TRG_DUR)) | ||
int TRG_DUR = 20; // duration of the Z-axis pulse sent, in ms | ||
#endif | ||
|
||
#if !(defined(Hyst)) | ||
int Hyst = 20; // Hysteresis value for ADC measurements | ||
#endif | ||
|
||
#if !(defined(voldMeterConstant)) | ||
long voltMeterConstant = 1125300L; // For fine tuning input voltage sense | ||
#endif | ||
|
||
#ifdef I2C | ||
#if !(defined(pP_i2c_address)) | ||
byte pP_i2c_address = 0xa0; // I2C Bus Address | ||
#endif | ||
#endif | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters