06-07-2023, 04:00 PM
(06-04-2023, 09:30 PM)Jens Noritzsch Wrote: Puck.accelWr looks like a pretty straightforward command to configure the register that you have mentioned – and it should be short enough to be readily included into the experiment source.
There should have been this link: https://www.espruino.com/Reference#l_Puck_accelWr
The function arguments (“reg” and “data”) are documented in http://www.espruino.com/files/LIS3MDL.pdf
So, the file you linked is an example for this, yes.