Skip to content

Commit 34022a2

Browse files
committed
Update the Portable C example to use ICM_20948_init_struct
1 parent 8bf2fbe commit 34022a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/PortableC/Example999_Portable/Example999_Portable.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ void setup()
7272
WIRE_PORT.setClock(400000);
7373
#endif
7474

75+
// Initialize myICM
76+
ICM_20948_init_struct(&myICM);
77+
7578
// Link the serif
7679
ICM_20948_link_serif(&myICM, &mySerif);
7780

0 commit comments

Comments
 (0)