Merge pull request #6657 from meingraham/patch-9

Uppercase USE_A4988_STEPPER
This commit is contained in:
Theo Arends 2019-10-16 08:42:44 +02:00 committed by GitHub
commit 905df3bee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 7 deletions

View File

@ -473,7 +473,7 @@
#define D_CMND_ZIGBEE_PROBE "ZigbeeProbe"
// Commands xdrv_25_A4988_Stepper.ino
#ifdef USE_A4988_Stepper
#ifdef USE_A4988_STEPPER
#define D_CMND_MOTOR "MOTOR"
#define D_JSON_MOTOR_MOVE "doMove"
#define D_JSON_MOTOR_ROTATE "doRotate"

View File

@ -541,7 +541,7 @@
// #define USE_ALECTO_V2 // Add support for decoding Alecto V2 sensors like ACH2010, WS3000 and DKW2012 weather stations using 868MHz RF sensor receiver (+1k7 code)
//#define USE_HRE // Add support for Badger HR-E Water Meter (+1k4 code)
//#define USE_A4988_Stepper // Add support for A4988 stepper-motor-driver-circuit (+10k5 code)
//#define USE_A4988_STEPPER // Add support for A4988/DRV8825 stepper-motor-driver-circuit (+10k5 code)
// -- End of general directives -------------------

View File

@ -268,7 +268,7 @@ char* ToHex_P(const unsigned char * in, size_t insz, char * out, size_t outsz, c
#undef USE_RF_SENSOR // Disable support for RF sensor receiver (434MHz or 868MHz) (+0k8 code)
#undef USE_SM16716 // Disable support for SM16716 RGB LED controller (+0k7 code)
#undef USE_HRE // Disable support for Badger HR-E Water Meter (+1k4 code)
#undef USE_A4988_Stepper // Disable support for A4988_Stepper
#undef USE_A4988_STEPPER // Disable support for A4988_Stepper
#undef DEBUG_THEO // Disable debug code
#undef USE_DEBUG_DRIVER // Disable debug code
#endif // FIRMWARE_CLASSIC

View File

@ -731,7 +731,7 @@ const uint8_t kGpioNiceList[] PROGMEM = {
GPIO_HRE_CLOCK,
GPIO_HRE_DATA,
#endif
#ifdef USE_A4988_Stepper
#ifdef USE_A4988_STEPPER
GPIO_A4988_DIR, // A4988 direction pin
GPIO_A4988_STP, // A4988 step pin
// folowing are not mandatory

View File

@ -444,7 +444,7 @@ void GetFeatures(void)
#ifdef USE_INA226
feature5 |= 0x00000010; // xsns_54_ina226.ino
#endif
#ifdef USE_A4988_Stepper
#ifdef USE_A4988_STEPPER
feature5 |= 0x00000020; // xdrv_25_A4988.ino
#endif
#ifdef USE_DDS2382

View File

@ -18,7 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef USE_A4988_Stepper
#ifdef USE_A4988_STEPPER
#include <A4988_Stepper.h>
#define XDRV_25 25

View File

@ -170,7 +170,7 @@ a_features = [[
"USE_MAX31865","USE_CHIRP","USE_SOLAX_X1","USE_PAJ7620"
],[
"USE_BUZZER","USE_RDM6300","USE_IBEACON","USE_SML_M",
"USE_INA226","USE_A4988_Stepper","USE_DDS2382","USE_SM2135",
"USE_INA226","USE_A4988_STEPPER","USE_DDS2382","USE_SM2135",
"USE_SHUTTER","USE_PCF8574","USE_DDSU666","USE_DEEPSLEEP",
"USE_SONOFF_SC","USE_SONOFF_RF","","",
"","","","",