Wiring Forum

All Forums => Core/Cross-platform Library Questions => Topic started by: Qynx on March 01, 2013, 09:05:24 AM

Title: SPI.setBitorder
Post by: Qynx on March 01, 2013, 09:05:24 AM
I have a problem with SPI.setBitOrder(MSBFIRST)

In the library as an example / Syntax

Examples / / set bit order to LSBFIRST
                      SPI.setBitorder (LSBFIRST);

Syntax SPI.setBitorder (bitOrder)


I think this should be SPI.setBitOrder (LSBFIRST); / / O! no o

But when I use this I get the error message

undefined reference to `WSPI :: setBitOrder (unsigned char) '


Could it be that somewhere in the Library also something goes wrong?


Rob Keij
Title: Re: SPI.setBitorder
Post by: brevig on March 08, 2013, 04:20:38 AM
Hi Qynx!

I'm not able to reproduce this error. What version of Wiring are you using, and with what hardware?

You are right about the documentation being wrong. We'll fix that. Thanks!

PS: I was targeting Wiring S with Wiring 0100. The SPI library is a part of the AVR8Bit core.
Title: Re: SPI.setBitorder
Post by: Qynx on March 11, 2013, 09:52:56 AM
Hi Brevig,

I use my own board with Mega128 (bootloader for wiring 1.0) with Wiring 0100.


Qynx