• Glad you got this sorted!

    I'd definitely look at @maze1980's suggestions about using I2C though - it's much cleaner.

    It might be that const Temp_Reg = '0x00'; should really be const Temp_Reg = 0x00;

    It'd be a great idea to add this suggestion from @Robin (and to also change TMP117_Address).

    What you're actually doing there is defining a string of text rather than a number, so it'll behave quite differently if you do anything with it. As chance would have it JavaScript will convert this to a number properly for you, but if you try to use it in any other way you'll hit big issues.

    For instance Temp_Reg = '0x00'; print(1+Temp_Reg) won't print 1 as you expect - so while it works now I can pretty much guarantee that if you define numbers as strings in the future it'll cause you a lot of headaches :)

About

Avatar for Gordon @Gordon started