arduino-libraries / Arduino_BMI270_BMM150

GNU Lesser General Public License v2.1
19 stars 13 forks source link

No member named 'onInterrupt' ? #37

Closed mconsidine closed 8 months ago

mconsidine commented 9 months ago

The "Simple" examples work, but the "Interrupts_subclassing" example fails to compile with two separate problems:

There is an error regarding Wire1 (which I assume should be Wire).

There is also this:

Compilation error: 'class MyBoschSensor' has no member named 'onInterrupt'

I'm just trying to get the example to run - no changes.

aentinger commented 8 months ago

This library is intended for the Nano 33 BLE Sense. If you compile for this board via

arduino-cli compile -b arduino:mbed_nano:nano33ble examples/Interrupts_subclassing -v

it compiles without problem.

But regardless of this intentional target there is quite a large range of supplied target architectures, see here. For which board did you compile the example in question?

mconsidine commented 8 months ago

Thanks for the look. I think this is a case of operator (ie, my) error ...

Tyenca commented 8 months ago

Does this mean the code won't work on the arduino uno? Because I am getting the errors regarding Wire1 and no member named 'onInterrupt' too

aentinger commented 8 months ago

Yes, that's what it means. It would probably pay off to limit the number of supported architectures (in library.properties) to those that are actually supported.