SPI3.h seems to have gone awol ?

02 Dec 2009

Hi..

trying to run Chris'  SPIThermometer as in the cookbook.

I can use the starter binary he has put in the cookbook and it works. (which is great), but I am trying to write my own program now.

The following (very simple code) gives me a compile error of

"Cannot open source input file "SPI3.h": No such file or directory (E5)" in file "temp/lib/SPIThermometer/MAX6662.h"

I've updated the libraries to the latest versions, but its not happy.

any help gratefully received,.

cheers

Dave.

#include "mbed.h"
#include "MAX6662.h"

MAX6662 st(p5, p6, p7, p8);
Serial pc (USBTX,USBRX);

int main() {
    while(1) {
        wait(1.0);
        pc.printf("Temp =  %f ^c \n \r",st.read());
    }
}

 

 

02 Dec 2009

Hi David,

SPI3 was one of our beta experimental libraries, partly made for Chris' experiment with that thermometer. It wasn't one that made it in to the release libraries, but it could be added.

I'll pen it into be written and made available for the next release.

Simon

02 Dec 2009

many thanks sire...

Now its getting cold outside I want to see if I can datalog exactly how cold it gets overnight. (now that I'm a whizz with a microSD Card!) You see It was snowing here in Yorkshire yesterday.