Quantcast
Channel: Wicked Device Support - Latest posts
Viewing all articles
Browse latest Browse all 651

Motor shield question

$
0
0

Thanks a lot, that makes a lot of sense. However I am getting a compile error message when I try to add that line in the sketch. I am very new to Arduino, so maybe I am missing some obvious syntax. Should I edit the library file to move protection, or can I handle everything in my sketch file?

Error message:

Arduino: 1.6.1 (Windows 7), Board: "Arduino Uno"

In file included from C:\Users\xxxx\Documents\Arduino\libraries\WickedMotorShield-master/Wicked_DCMotor.h:25:0,

             from DemirMotor2.ino:1:

C:\Users\xxxx\Documents\Arduino\libraries\WickedMotorShield-master/WickedMotorShield.h:89:19: error: 'uint8_t WickedMotorShield::M1_PWM_PIN' is protected

static uint8_t M1_PWM_PIN;

               ^

DemirMotor2.ino:4:20: error: within this context

DemirMotor2.ino:4:1: error: 'M1_PWM_PIN' in 'class WickedMotorShield' does not name a type

Error compiling.


Viewing all articles
Browse latest Browse all 651

Trending Articles