You need to add:
var P = { HRM_SCL : scl_pin, P.HRM_SDA : sda_pin }; getHRM();
At the end of your code and it should work.
what do I need to in order to connect the device?
You said you had it connected to Arduino and working? Just connect it as you did there.
@Gordon started
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.
You need to add:
At the end of your code and it should work.
You said you had it connected to Arduino and working? Just connect it as you did there.