I found a 0.1µF ceramic and put it in place, but it didn't help. I also tried a 1µF.. no luck. However, I did notice something interesting...
Uncaught SyntaxError: Got ?[219] expected EOF
at line 1 col 13
{var a=this;Ûf(a._tto)return console.log("HTU21D COLLISION")...
^
in function "getTemperature" called from line 2 col 60
...re(function (x) { T2 = x; });
^
Uncaught SyntaxError: Got ?[224] expected EOF
at line 1 col 13
{var a=this;àf(a._tto)return console.log("HTU21D COLLISION")...
^
in function "getTemperature" called from line 2 col 60
...re(function (x) { T2 = x; });
^
Uncaught SyntaxError: Got ?[229] expected EOF
at line 1 col 13
{var a=this;åf(a._tto)return console.log("HTU21D COLLISION")...
^
in function "getTemperature" called from line 2 col 60
...re(function (x) { T2 = x; });
^
Uncaught SyntaxError: Got ?[234] expected EOF
at line 1 col 13
{var a=this;êf(a._tto)return console.log("HTU21D COLLISION")...
^
in function "getTemperature" called from line 2 col 60
...re(function (x) { T2 = x; });
^
Uncaught SyntaxError: Got ?[239] expected EOF
at line 1 col 13
{var a=this;ïf(a._tto)return console.log("HTU21D COLLISION")...
^
in function "getTemperature" called from line 2 col 60
...re(function (x) { T2 = x; });
^
Uncaught SyntaxError: Got ?[244] expected EOF
at line 1 col 13
{var a=this;ôf(a._tto)return console.log("HTU21D COLLISION")...
^
in function "getTemperature" called from line 2 col 60
...re(function (x) { T2 = x; });
^
Uncaught SyntaxError: Got ?[249] expected EOF
at line 1 col 13
{var a=this;ùf(a._tto)return console.log("HTU21D COLLISION")...
^
in function "getTemperature" called from line 2 col 60
...re(function (x) { T2 = x; });
^
Uncaught SyntaxError: Got ?[254] expected EOF
at line 1 col 13
{var a=this;þf(a._tto)return console.log("HTU21D COLLISION")...
^
in function "getTemperature" called from line 2 col 60
...re(function (x) { T2 = x; });
^
Uncaught SyntaxError: Got ?[3] expected EOF
at line 1 col 13
{var a=this;g(a._tto)return console.log("HTU21D COLLISION")...
^
in function "getTemperature" called from line 2 col 60
...re(function (x) { T2 = x; });
^
Notice that the bad character code is increasing by 5 on each error. Once it reaches 255, it loops around and increments the next character (f to g) and carries on. Weird. This is with stock 1v70.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I found a 0.1µF ceramic and put it in place, but it didn't help. I also tried a 1µF.. no luck. However, I did notice something interesting...
Notice that the bad character code is increasing by 5 on each error. Once it reaches 255, it loops around and increments the next character (f to g) and carries on. Weird. This is with stock 1v70.