minimal communication with BMX055
Some checks failed
Build / build (macos-12) (push) Waiting to run
Build / build (macos-14) (push) Waiting to run
Build / build (windows-2022) (push) Waiting to run
Build / build (ubuntu-22.04) (push) Failing after 15s
Documentation / build (push) Successful in 5s

This commit is contained in:
2024-04-27 23:12:48 -06:00
parent 29be843ad0
commit d9acd6b2a8
8 changed files with 218 additions and 1 deletions

View File

@ -84,7 +84,7 @@ int main(void)
cfb_set_kerning(dev, 3);
const struct device *ina, *bmp, *hdc;
const struct device *ina, *bmp, *bmx, *hdc;
ina = DEVICE_DT_GET(DT_NODELABEL(ina231));
if (!device_is_ready(ina))
@ -100,6 +100,14 @@ int main(void)
return 0;
}
bmx = DEVICE_DT_GET(DT_NODELABEL(bmx055));
if (!device_is_ready(bmx))
{
LOG_ERR("Device %s not ready\n", bmx->name);
return 0;
}
printf("Initialized %s\n", bmx->name);
// hdc = DEVICE_DT_GET(DT_NODELABEL(hdc1080));
// if (!device_is_ready(dev))
// {