You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
833 B

#ifndef MAX31855KASA_H_
#define MAX31855KASA_H_
#include <Arduino.h>
#define NUMTCAVGSAMPLES 10
static bool setupDone;
typedef struct max31855Status {
double temperature;
uint8_t stat;
uint8_t csPin;
};
class MAX31855 {
private:
uint32_t updateIntervalMs, lastUpdate;
max31855Status status;
double temperature;
uint8_t counter;
double readings[NUMTCAVGSAMPLES];
static char spi_transfer(volatile char);
static void readThermocouple(struct max31855Status*);
public:
MAX31855(uint8_t, uint32_t);
void setup();
double getTemperature(){
return temperature;
}
uint8_t getStatus(){
return status.stat;
}
void update();
};
#endif

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close