Author Topic: SPI.setBitorder  (Read 5438 times)

0 Members and 1 Guest are viewing this topic.


« 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


Re: SPI.setBitorder
« Reply #1 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.
« Last Edit: March 08, 2013, 04:24:15 AM by brevig »


Re: SPI.setBitorder
« Reply #2 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.