Improved/optimized DS18B20/1Wire read

Started by ColinR, October 05, 2014, 04:50:15 PM

TomWS

For future ref, you could have also done:
byte dsaddr[] = {0x10, 0x90, 0x51, 0x59, 0x03, 0x08, 0x00, 0xCB};

Apprentice17

That's what I tried first, but it didn't work. Couldn't compile it.
Converting the HEX to DEC manually did the trick ;)

TomWS

Quote from: Apprentice17 on January 15, 2019, 02:28:51 AM
That's what I tried first, but it didn't work. Couldn't compile it.
If it didn't compile, you had some other error in your code.  This is a proper 'C' construct.