Qwiic Step SPX-15951 library missing members ?

I just got this board, installed the library (2.0.1) and was going through the examples and got two errors:

Example5_RunContinuously.ino

‘class QwiicStep’ has no member named ‘modeRunContinuous’

Example6_RunWithAcceleration

‘class QwiicStep’ has no member named ‘modeRunWithAcceleration’

thanks

Can you copy/paste the code you’re running from your IDE?

I am using the SF example code:

there seems to be a limit of much code can be pasted so lets start with this one, thanks

here is Example5_RunContinuously.ino

/******************************************************************************

Given a speed, run continuously. No acceleration, just GO.

Priyanka Makin @ SparkFun Electronics

Original Creation Date: January 10, 2020

SparkFun labored with love to create this code. Feel like supporting open source hardware?

Buy a board from SparkFun! https://www.sparkfun.com/products/15951

This code is Lemonadeware; if you see me (or any other SparkFun employee) at the

local, and you’ve found our code helpful, please buy us a round!

Hardware Connections:

Attach RedBoard to computer using a USB cable.

Connect Qwiic Step to Red Board using Qwiic cable.

Connect stepper motor to Qwiic Step using latching terminals.

Connect power supply (8-35V) to barrel jack or using latching terminals.

Open Serial Monitor at 115200 baud.

Distributed as-is; no warranty is given.

******************************************************************************/

#include “SparkFun_Qwiic_Step.h” //Click here to get the library: http://librarymanager/All#Qwiic_Step by SparkFun

QwiicStep motor;

void setup()

{

Serial.begin(115200);

Serial.println(“Qwiic step examples”);

Wire.begin();

//Check if Qwiic Step is correctly connected to I2C

if (motor.begin() == false)

{

Serial.println(“Device did not acknowledge! Freezing.”);

while (1)

;

}

Serial.println(“Motor acknowledged.”);

motor.modeRunContinuous(); //Tell the motor to run at the given speed… forever

//Continual running at speed:

//Speeds are in steps per second.

//Positive is clockwise, negative is counter clockwise.

//Speeds of more than 1000 are unreliable.

//Decimal values are allowed. 0.1 = 1 step every ten seconds.

motor.setSpeed(-350);

}

void loop()

{

}

It would seem that the code version is old. The function is set to setModeRunContinuous();, same with the other example as well. You can view those changes on the GitHub repo:

https://github.com/sparkfun/SparkFun_Qw … no_Library

Hi Brandon

the link you supplied above worked. I used this keyword to install the original library in the IDE ‘SparkFun Qwiic Step’, not sure if it is pointing to a different location or how to confirm?

I see this somewhat often. Is it better to use the GitHub link vs the IDE manage libraries method to install a new library ?

Once a version is pushed in GitHub it should reflect as an update in the IDE Library Manager, however it doesn’t always happen that way. For SparkX products, I would recommend trying to keep to the GitHub repo as close as possible.