No bmp and stepcounter :( - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PineTime (https://forum.pine64.org/forumdisplay.php?fid=134) +--- Forum: Development Discussion on PineTime (https://forum.pine64.org/forumdisplay.php?fid=136) +--- Thread: No bmp and stepcounter :( (/showthread.php?tid=12789) Pages:
1
2
|
RE: No bmp and stepcounter :( - Avamander - 01-25-2021 (01-24-2021, 08:58 AM)Martin87 Wrote: Yesterday I installed v 0.11.0. Good to hear. Please open an issue on GitHub for any feature requests and maybe include details on how Garmin does it. (https://github.com/JF002/Pinetime/issues) RE: No bmp and stepcounter :( - jandy - 08-10-2021 (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). 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/develop/app/drivers/bma421/zephyr RE: No bmp and stepcounter :( - danielt - 08-16-2021 (08-10-2021, 12:56 AM)jandy Wrote:(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). Does reversing the order of the init and the soft reset make any difference? RE: No bmp and stepcounter :( - jandy - 09-14-2021 (08-16-2021, 04:57 AM)danielt Wrote:(08-10-2021, 12:56 AM)jandy Wrote:(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). RE: No bmp and stepcounter :( - jandy - 12-01-2021 Is there any reference for bma421 interrupt-driven examples? I can not make it work in interrupt mode(I didn't write config file but I could poll accel data) https://gitee.com/fwatch/pinetime/blob/develop/drivers/sensor/bma421/bma421_trigger.c |