It needs some parameters https://www.espruino.com/Reference#l_Bangle_accelRd
Bangle.accelRd(0x0f,1) =new Uint8Array([20]) >
this reads WHOAMI register at 0x0f address and value 20=0x14 is KX022 (as per https://www.mouser.com/datasheet/2/348/KX022_1020_Specifications_Rev_12_0-1101230.pdf#page=36 )
@fanoush 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.
It needs some parameters https://www.espruino.com/Reference#l_Bangle_accelRd
this reads WHOAMI register at 0x0f address and value 20=0x14 is KX022 (as per https://www.mouser.com/datasheet/2/348/KX022_1020_Specifications_Rev_12_0-1101230.pdf#page=36 )