New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error #1

Closed
parabellium opened this Issue Oct 5, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@parabellium

parabellium commented Oct 5, 2017

Hi, thanks for the library but i have a compile error on Arduino IDE 1.8.4. Thanks

``Arduino:` 1.8.4 (Windows 10), Board: "NodeMCU 0.9 (ESP-12 Module), 80 MHz, 115200, 4M (3M SPIFFS)"

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h: In constructor 'MCP3017AccelStepper::MCP3017AccelStepper(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:603:20: error: 'uint8_t AccelStepper::_interface' is private

 uint8_t        _interface;          // 0, 1, 2, 4, 8, See MotorInterfaceType

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:13:3: error: within this context

_interface = interface;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:613:20: error: 'long int AccelStepper::_currentPos' is private

 long           _currentPos;    // Steps

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:14:3: error: within this context

_currentPos = 0;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:618:20: error: 'long int AccelStepper::_targetPos' is private

 long           _targetPos;     // Steps

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:15:3: error: within this context

_targetPos = 0;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:622:20: error: 'float AccelStepper::_speed' is private

 float          _speed;         // Steps per second

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:16:3: error: within this context

_speed = 0.0;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:625:20: error: 'float AccelStepper::_maxSpeed' is private

 float          _maxSpeed;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:17:3: error: within this context

_maxSpeed = 1.0;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:629:20: error: 'float AccelStepper::_acceleration' is private

 float          _acceleration;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:18:3: error: within this context

_acceleration = 1.0;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:630:20: error: 'float AccelStepper::_sqrt_twoa' is private

 float          _sqrt_twoa; // Precomputed sqrt(2*_acceleration)

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:19:3: error: within this context

_sqrt_twoa = 1.0;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:634:20: error: 'long unsigned int AccelStepper::_stepInterval' is private

 unsigned long  _stepInterval;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:20:3: error: within this context

_stepInterval = 0;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:640:20: error: 'unsigned int AccelStepper::_minPulseWidth' is private

 unsigned int   _minPulseWidth;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:21:3: error: within this context

_minPulseWidth = 1;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:652:20: error: 'uint8_t AccelStepper::_enablePin' is private

 uint8_t        _enablePin;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:22:3: error: within this context

_enablePin = 0xff;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:637:20: error: 'long unsigned int AccelStepper::_lastStepTime' is private

 unsigned long  _lastStepTime;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:23:3: error: within this context

_lastStepTime = 0;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:607:26: error: 'uint8_t AccelStepper::_pin [4]' is private

 uint8_t        _pin[4];

                      ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:24:3: error: within this context

_pin[0] = pin1;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:607:26: error: 'uint8_t AccelStepper::_pin [4]' is private

 uint8_t        _pin[4];

                      ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:25:3: error: within this context

_pin[1] = pin2;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:607:26: error: 'uint8_t AccelStepper::_pin [4]' is private

 uint8_t        _pin[4];

                      ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:26:3: error: within this context

_pin[2] = pin3;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:607:26: error: 'uint8_t AccelStepper::_pin [4]' is private

 uint8_t        _pin[4];

                      ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:27:3: error: within this context

_pin[3] = pin4;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:603:20: error: 'uint8_t AccelStepper::_interface' is private

 uint8_t        _interface;          // 0, 1, 2, 4, 8, See MotorInterfaceType

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:29:7: error: within this context

if (_interface == DRIVER) {

   ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:652:20: error: 'uint8_t AccelStepper::_enablePin' is private

 uint8_t        _enablePin;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:30:5: error: within this context

 _enablePin = pin3;

 ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:661:10: error: 'long int AccelStepper::_n' is private

 long _n;

      ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:34:3: error: within this context

_n = 0;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:664:11: error: 'float AccelStepper::_c0' is private

 float _c0;

       ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:35:3: error: within this context

_c0 = 0.0;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:667:11: error: 'float AccelStepper::_cn' is private

 float _cn;

       ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:36:3: error: within this context

_cn = 0.0;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:670:11: error: 'float AccelStepper::_cmin' is private

 float _cmin; // at max speed

       ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:37:3: error: within this context

_cmin = 1.0;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:610:34: error: 'uint8_t AccelStepper::_pinInverted [4]' is private

 uint8_t        _pinInverted[4];

                              ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:42:5: error: within this context

 _pinInverted[i] = 0;

 ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h: In member function 'virtual void MCP3017AccelStepper::setOutputPins(uint8_t)':

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:603:20: error: 'uint8_t AccelStepper::_interface' is private

 uint8_t        _interface;          // 0, 1, 2, 4, 8, See MotorInterfaceType

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:53:7: error: within this context

if (_interface == FULL4WIRE || _interface == HALF4WIRE) {

   ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:603:20: error: 'uint8_t AccelStepper::_interface' is private

 uint8_t        _interface;          // 0, 1, 2, 4, 8, See MotorInterfaceType

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:53:34: error: within this context

if (_interface == FULL4WIRE || _interface == HALF4WIRE) {

                              ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:607:26: error: 'uint8_t AccelStepper::_pin [4]' is private

 uint8_t        _pin[4];

                      ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:59:19: error: within this context

 _digitalWrite(_pin[i], (mask & (1 << i)) ? (HIGH ^ _pinInverted[i]) : (LOW ^ _pinInverted[i]));

               ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:610:34: error: 'uint8_t AccelStepper::_pinInverted [4]' is private

 uint8_t        _pinInverted[4];

                              ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:59:56: error: within this context

 _digitalWrite(_pin[i], (mask & (1 << i)) ? (HIGH ^ _pinInverted[i]) : (LOW ^ _pinInverted[i]));

                                                    ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:610:34: error: 'uint8_t AccelStepper::_pinInverted [4]' is private

 uint8_t        _pinInverted[4];

                              ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:59:82: error: within this context

 _digitalWrite(_pin[i], (mask & (1 << i)) ? (HIGH ^ _pinInverted[i]) : (LOW ^ _pinInverted[i]));

                                                                              ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h: In member function 'virtual void MCP3017AccelStepper::disableOutputs()':

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:603:20: error: 'uint8_t AccelStepper::_interface' is private

 uint8_t        _interface;          // 0, 1, 2, 4, 8, See MotorInterfaceType

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:64:9: error: within this context

if (! _interface) {

     ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:652:20: error: 'uint8_t AccelStepper::_enablePin' is private

 uint8_t        _enablePin;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:69:7: error: within this context

if (_enablePin != 0xff) {

   ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:652:20: error: 'uint8_t AccelStepper::_enablePin' is private

 uint8_t        _enablePin;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:70:19: error: within this context

 _digitalWrite(_enablePin, LOW ^ _enableInverted);

               ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:649:20: error: 'bool AccelStepper::_enableInverted' is private

 bool           _enableInverted;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:70:37: error: within this context

 _digitalWrite(_enablePin, LOW ^ _enableInverted);

                                 ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h: In member function 'virtual void MCP3017AccelStepper::enableOutputs()':

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:603:20: error: 'uint8_t AccelStepper::_interface' is private

 uint8_t        _interface;          // 0, 1, 2, 4, 8, See MotorInterfaceType

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:75:9: error: within this context

if (! _interface) {

     ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:607:26: error: 'uint8_t AccelStepper::_pin [4]' is private

 uint8_t        _pin[4];

                      ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:79:12: error: within this context

_pinMode(_pin[0], OUTPUT);

        ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:607:26: error: 'uint8_t AccelStepper::_pin [4]' is private

 uint8_t        _pin[4];

                      ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:80:12: error: within this context

_pinMode(_pin[1], OUTPUT);

        ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:603:20: error: 'uint8_t AccelStepper::_interface' is private

 uint8_t        _interface;          // 0, 1, 2, 4, 8, See MotorInterfaceType

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:82:7: error: within this context

if (_interface == FULL4WIRE || _interface == HALF4WIRE) {

   ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:603:20: error: 'uint8_t AccelStepper::_interface' is private

 uint8_t        _interface;          // 0, 1, 2, 4, 8, See MotorInterfaceType

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:82:34: error: within this context

if (_interface == FULL4WIRE || _interface == HALF4WIRE) {

                              ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:607:26: error: 'uint8_t AccelStepper::_pin [4]' is private

 uint8_t        _pin[4];

                      ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:83:14: error: within this context

 _pinMode(_pin[2], OUTPUT);

          ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:607:26: error: 'uint8_t AccelStepper::_pin [4]' is private

 uint8_t        _pin[4];

                      ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:84:14: error: within this context

 _pinMode(_pin[3], OUTPUT);

          ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:652:20: error: 'uint8_t AccelStepper::_enablePin' is private

 uint8_t        _enablePin;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:87:7: error: within this context

if (_enablePin != 0xff) {

   ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:652:20: error: 'uint8_t AccelStepper::_enablePin' is private

 uint8_t        _enablePin;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:88:14: error: within this context

 _pinMode(_enablePin, OUTPUT);

          ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:652:20: error: 'uint8_t AccelStepper::_enablePin' is private

 uint8_t        _enablePin;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:89:19: error: within this context

 _digitalWrite(_enablePin, HIGH ^ _enableInverted);

               ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:649:20: error: 'bool AccelStepper::_enableInverted' is private

 bool           _enableInverted;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:89:38: error: within this context

 _digitalWrite(_enablePin, HIGH ^ _enableInverted);

                                  ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h: In member function 'void MCP3017AccelStepper::setEnablePin(uint8_t)':

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:652:20: error: 'uint8_t AccelStepper::_enablePin' is private

 uint8_t        _enablePin;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:94:3: error: within this context

_enablePin = enablePin;

^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:652:20: error: 'uint8_t AccelStepper::_enablePin' is private

 uint8_t        _enablePin;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:97:7: error: within this context

if (_enablePin != 0xff) {

   ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:652:20: error: 'uint8_t AccelStepper::_enablePin' is private

 uint8_t        _enablePin;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:98:14: error: within this context

 _pinMode(_enablePin, OUTPUT);

          ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:652:20: error: 'uint8_t AccelStepper::_enablePin' is private

 uint8_t        _enablePin;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:99:19: error: within this context

 _digitalWrite(_enablePin, HIGH ^ _enableInverted);

               ^

In file included from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.h:18:0,

             from C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:5:

C:\Program Files (x86)\Arduino\libraries\AccelStepper-master\src/AccelStepper.h:649:20: error: 'bool AccelStepper::_enableInverted' is private

 bool           _enableInverted;

                ^

C:\Program Files (x86)\Arduino\libraries\MCP3017AccelStepper-master\MCP3017AccelStepper.cpp:99:38: error: within this context

 _digitalWrite(_enablePin, HIGH ^ _enableInverted);

                                  ^

exit status 1
Error compiling for board NodeMCU 0.9 (ESP-12 Module).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@johannilsson

This comment has been minimized.

Show comment
Hide comment
@johannilsson

johannilsson Oct 6, 2017

Owner

Did you patch the AccelStepper? Private methods needs to be changed to protected for this extension to work.

I haven't run this myself in a while though so things might have changed in one of the dependencies, it's current state isn't really a drop in library and it requires some tweaking to get it to work unfortunately.

Owner

johannilsson commented Oct 6, 2017

Did you patch the AccelStepper? Private methods needs to be changed to protected for this extension to work.

I haven't run this myself in a while though so things might have changed in one of the dependencies, it's current state isn't really a drop in library and it requires some tweaking to get it to work unfortunately.

@parabellium

This comment has been minimized.

Show comment
Hide comment
@parabellium

parabellium Oct 6, 2017

No i didnt. Unfortunately my skills not enough for this. The best, move my project to ESP32. Thank you.

parabellium commented Oct 6, 2017

No i didnt. Unfortunately my skills not enough for this. The best, move my project to ESP32. Thank you.

@johannilsson

This comment has been minimized.

Show comment
Hide comment
@johannilsson

johannilsson Oct 6, 2017

Owner

Sorry I can't be of more help, good luck with your project.

Owner

johannilsson commented Oct 6, 2017

Sorry I can't be of more help, good luck with your project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment