Commit Iniziale, progetto funzionante caricato su box ETcontroller in

cantina
This commit is contained in:
2019-10-09 23:25:44 +02:00
commit c6e4e461ca
555 changed files with 118433 additions and 0 deletions

19
MAX6675/MAX6675.h Normal file
View File

@@ -0,0 +1,19 @@
#include <mbed.h>
#define ON 0
#define OFF 1
#define MAX6675_ERROR 1
#define MAX6675_OK 0
class Thermo {
public:
Thermo(SPI* dev, PinName p);
virtual ~Thermo();
char readTemp(float* temp);
void readRaw(uint16_t* data);
private:
SPI *device;
DigitalOut *cs;
};