SparkFun Forums 

Where electronics enthusiasts find answers.

User avatar
By Chris M
#230902
Hi,

having used the Artemis Nano in the past, now coming back to it after a year and nothing compiles anymore. I can upload Blink no problem but most of everything else is an issue and won't compile, most importantly I want to run motors and just using the MotorTest.ino file already gives me this error below.
I updated all the boards and libraries and keep getting this error:

{...}Serial_Controlled_Motor_Driver\src\SCMD.cpp: In member function 'uint8_t SCMD::begin()':
{...}Serial_Controlled_Motor_Driver\src\SCMD.cpp:106:7: error: 'class arduino::MbedSPI' has no member named 'setClockDivider'
SPI.setClockDivider(SPI_CLOCK_DIV32);
^~~~~~~~~~~~~~~
{...}Serial_Controlled_Motor_Driver\src\SCMD.cpp:106:23: error: 'SPI_CLOCK_DIV32' was not declared in this scope
SPI.setClockDivider(SPI_CLOCK_DIV32);
^~~~~~~~~~~~~~~
{...}Serial_Controlled_Motor_Driver\src\SCMD.cpp:108:7: error: 'class arduino::MbedSPI' has no member named 'setBitOrder'
SPI.setBitOrder(MSBFIRST);
^~~~~~~~~~~
{...}Serial_Controlled_Motor_Driver\src\SCMD.cpp:111:7: error: 'class arduino::MbedSPI' has no member named 'setDataMode'
SPI.setDataMode(SPI_MODE0);

any help is appreaciated.
Chris
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum