All Forums > Core/Cross-platform Library Questions

SPI.setBitorder

(1/1)

Qynx:
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

brevig:
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.

Qynx:
Hi Brevig,

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


Qynx




Navigation

[0] Message Index

Go to full version