use dallas sensor address as ID - #327

This commit is contained in:
Paul
2020-02-12 22:00:45 +01:00
parent c801160351
commit ff97b3b70b
6 changed files with 62 additions and 64 deletions

View File

@@ -39,7 +39,8 @@ class DS18 {
void setup(uint8_t gpio, bool parasite);
uint8_t scan();
void loop();
char * getDeviceString(char * s, unsigned char index);
char * getDeviceType(char * s, unsigned char index);
char * getDeviceID(char * buffer, unsigned char index);
float getValue(unsigned char index);
int16_t getRawValue(unsigned char index); // raw values, needs / 16