minimal communication with BMX055
Some checks failed
Some checks failed
This commit is contained in:
@ -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))
|
||||
// {
|
||||
|
Reference in New Issue
Block a user