Post your cool example code here.
- Posts: 457
- Joined: Mon Apr 27, 2015 2:28 pm
- Location: Mt.Etna, Italy
Nutsy wrote:Hmm im getting spi was not declared in this scope error... Is it ina specific library?
If some libraries use SPI or Wire library you must put a #include in your sketch. I believe that older IDEs don't require it but newer IDE require it.
It is the same using Arduino boards.
So if you get that error just put the #include.
It is an IDE requirements because before compiling the IDE copies all files in a temporary folder but seems that it fails with SPI or Wire library when the #include is only in the library.
- Posts: 813
- Joined: Mon Apr 27, 2015 11:26 am
- Location: Vienna, Austria
AS I wrote: You have to search WITHIN the libraries for every "SPI" related stuff, not in the sketch.
The fastwire library has an extra STM32 part of code, but I'm sure that it was not written for STM32duino, but MBED or something. I just wonder that the library compiles. Maybe in soft SPI mode - you have to look at the verbose output of the IDE if there are any "warning" messages.
Who is online
Users browsing this forum: No registered users and 1 guest