08-10-2021, 12:56 AM
(01-19-2021, 10:35 AM)danielt Wrote: If anyone is interested in getting the step counter working in Infinitime then I structured the wasp-os driver to make it easy to separate the micropython stuff from everything. Most of the code is C code directly from Bosch anyway so it's much more direct than JF's transliteration of the wasp-os HRS driver. If you're interested then take a look at https://github.com/daniel-thompson/bma42x-upy . You need the generic bma4.c/h code from the BMA423 directory together with bma421.c/h and bma421_config.h from the BMA421 directory (and some callbacks to the Infinitime I2C driver).
PS Once of the videos in my wasp-os series covers both HR and step count: https://youtu.be/lIo2-djNR48
I works on BMA421 pinetime using your driver mentioned above, but when write config file during initialization encounter -5 error
my project :https://gitee.com/fwatch/pinetime/tree/d...421/zephyr