It may be that you have a version of the P8 with a different accelerometer. accel.js only works with the SC7A20 while your P8 may have a BMA421. Search here for more information.
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 may be that you have a version of the P8 with a different accelerometer.
accel.js
only works with the SC7A20 while your P8 may have a BMA421. Search here for more information.