Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef THERMOMETERS_H
- #define THERMOMETERS_H
- #include "spark_wiring_string.h"
- #include "spark_wiring_usartserial.h"
- #include <math.h>
- #define NUM_THERMOMETERS 4
- extern char* itoa(int a, char* buffer, unsigned char radix);
- class thermometers {
- public:
- thermometers();
- float get(int index);
- void get(int index, String* out);
- void read_temps();
- void print_temps();
- float ntc(int RawADC);
- void select(byte jj);
- private:
- float pad;
- byte temp_map[7];
- float temperatures[NUM_THERMOMETERS];//board,in,out,water,acku,skorsten
- char * ftoa(char *a, double f, int precision);
- };
- #endif /* THERMOMETERS_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement