matmunk / DS18B20

Arduino library for the Maxim Integrated DS18B20 1-Wire temperature sensor.
MIT License
94 stars 32 forks source link

documentation: very poor explanations of code syntax and what it does / how it works #14

Open dsyleixa opened 10 months ago

dsyleixa commented 10 months ago

as to these code snippets:

DS18B20 ds(2);            // <<<<<<<<<<<<<  what is the (2) for?                  
uint8_t address[] = {40, 250, 31, 218, 4, 0, 0, 52};  // <<<<<<<<<<<<<  what are all the 8 single numbers for?
                                                      // <<<<<<<<<<<<<  where do they come from?
uint8_t selected;        // <<<<<<<<<<<<<  what means "selected"? which numbers are getting assigned?
//...
selected = ds.select(address);  // <<<<<<<<<<<<< what means "selected"? which numbers are returned?

where are the docs about what this code does?