-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd0f4b5
commit e14a43f
Showing
4 changed files
with
66 additions
and
23 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* DCC Waveform Generator v6.0.1 | ||
* DCC Waveform Generator v6.1.0 | ||
* | ||
* Author: Philipp Gahtow [email protected] | ||
* Don Goodman-Wilson [email protected] | ||
|
@@ -79,6 +79,7 @@ | |
* - change ACK detection and add state machine for CV direct | ||
* - add function bit control from F29...F32767 | ||
* - add function setExtAccessoryPos | ||
* - add timing to ACK detection | ||
*/ | ||
|
||
#ifndef __DCCCOMMANDSTATION_H__ | ||
|
@@ -90,15 +91,14 @@ | |
//#define PROG_DEBUG //Serial output of Prog Informaton | ||
|
||
#if defined(ESP8266) //ESP8266 or WeMos D1 mini | ||
#define ACK_SENCE_VALUE 10 //WeMos has a voltage divider for 3.1 Volt -> we not want to modify the board! | ||
#define ACK_SENCE_DIFF 0 //Differenz beim Konstanten Strom am Gleis (Abweichung +/-) | ||
#define ACK_SENCE_TIME 2 //Dauer bis ein ACK erkannt wird | ||
#define ACK_SENCE_VALUE 4 //WeMos has a voltage divider for 3.1 Volt -> we not want to modify the board! | ||
#else | ||
#define ACK_SENCE_VALUE 90 //Value = 200 for use with AREF = 1.1 Volt analog Refence Voltage; (Value = 15 for AREF = 5.0 Volt) | ||
#define ACK_SENCE_DIFF 33 //Differenz beim Konstanten Strom am Gleis (Abweichung +/-) | ||
#define ACK_SENCE_TIME 8 //Dauer bis ein ACK erkannt wird | ||
#define ACK_SENCE_VALUE 30 //value difference | ||
#endif | ||
|
||
#define ACK_SENCE_MIN 3 //min ACK length in ms | ||
#define ACK_SENCE_MAX 14 //max ACK length in ms | ||
|
||
//read value again if verify fails: | ||
#define CV_BIT_MAX_TRY_READ 4 //times to try in Bit-Mode | ||
#define CV_BYTE_MAX_TRY_READ 1 //times to try in Byte-Mode | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name=DCCInterfaceMaster | ||
version=6.0.1 | ||
version=6.1.0 | ||
author=Philipp Gahtow | ||
maintainer=Philipp Gahtow <[email protected]> | ||
sentence=Enables NMRA DCC Communication | ||
|