LIS2MDL code ***help request***

All pins except A6 and A7 have built-in pullups; why not use those instead?