Installed Arduino_Modulino lib and YES to all dependencies
Open example Modulino_Movment and I get this compile error
I must have missed something
n file included from C:\...\Documents\Arduino\libraries\Arduino_Modulino\src/Modulino.h:12:0,from C:\...\Documents\Arduino\libraries\Arduino_Modulino\src/Arduino_Modulino.h:1,from C:\…\AppData\Local\Temp.arduinoIDE-unsaved20251114-25656-1e39v1f.5brfi\Movement_Basic\Movement_Basic.ino:9:C:\...\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src/Wire.h: In member function 'bool Module::read(uint8_t*, int)':C:\...\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src/Wire.h:68:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)uint8_t requestFrom(int, int);^~~~~~~~~~~C:\...\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src/Wire.h:65:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)uint8_t requestFrom(uint8_t, uint8_t);^~~~~~~~~~~In file included from C:\...\Documents\Arduino\libraries\Arduino_Modulino\src\Modulino.h:12:0,from C:\...\Documents\Arduino\libraries\Arduino_Modulino\src\Modulino.cpp:4:C:\...AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src/Wire.h: In member function 'bool Module::read(uint8_t*, int)':C:\...\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src/Wire.h:68:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)uint8_t requestFrom(int, int);^~~~~~~~~~~C:\...\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src/Wire.h:65:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)uint8_t requestFrom(uint8_t, uint8_t);^~~~~~~~~~~C:\...\Documents\Arduino\libraries\Arduino_Modulino\src\Modulino.cpp: At global scope:C:\...\Documents\Arduino\libraries\Arduino_Modulino\src\Modulino.cpp:8:60: error: 'init_priority' attribute is not supported on this platformModulinoClass Modulino attribute ((init_priority (101)));^exit status 1
Compilation error: exit status 1
I’m using the Modulino Accelerometer. So was thinking maybe I need the Main board also and this sketch won’t compile on the Zero. So I pulled the example sketch for just the LSM6DSOM and it compiles but nothing happened after uploading.
I’ll look thought all the info again, I must have missed something
Hi @beeamaker. You must correctly configure Arduino IDE for the board you are using. You say you are using the Arduino Zero board, yet we can see from the compilation output you shared that you instead have Arduino IDE configured for use with one of the boards of the AVR architecture (e.g., Arduino UNO R3). This is the reason why the compilation is failing.
Select Tools > Board > Arduino SAMD Boards (32-bits ARM Cortex-M0+) > Arduino Zero (Native USB) from the Arduino IDE menus to correctly configure Arduino IDE for use with the Arduino Zero board (when it is connected to your computer via the "Native USB port").
Unfortunately, even after correcting the configuration of Arduino IDE, there is an incompatibility between the "Arduino_Modulino" library and the Arduino Zero board, which will cause the compilation of your sketch to fail with yet a different error:
I'll provide instructions you can follow to fix the incompatibility:
Use any text editor to open the file at the following path on your computer's hard drive:
You were correct, I did have the wrong board selected - Figured that out but like you said, I just got a different compile error.
Ill follow your instructions and let you know, thanks
edit
I did get the LSM6DSOM lib working as well. since I don’t need all the other stuff, should I just use that one or does the Modulino have more features?
The "Arduino_Modulino" library is convenient to use in your sketches for projects using Modulino products since it provides support for every type of Modulino Node in a single place.
In addition, some of the Modulino Node products have a special communication interface chip which allows doing advanced things like configuring custom addresses for individual Modulinos to allow you to use multiple of the same type in a project without conflicts. The Arduino_Modulino library has code specifically for working with that interface chip.
So we do generally recommend using the Arduino_Modulino library. However, you already have things working with the lower level library, so that nullifies the convenience factor that some might gain from using the Arduino_Modulino library. Furthermore, the Modulino Movement does not have that special interface chip I mentioned, so the code for working with that chip that is only available through the Arduino_Modulino library is not relevant to this specific product.
For these reasons, there isn't a significant advantage for you in using the Arduino_Modulino library. And there is a significant disadvantage in this specific case due to the incompatibility I mentioned above (yes, that can be resolved, but it is inconvenient). So I would say that it is a good idea to stick with using the lower level library until such time as you might see any good motivation to switch to using the Arduino_Modulino library.