int speed(int isp, int ip) { if (isp < 0 || isp > 10 || ip < 0 || ip > 10) return (1); if (ip) _speed_all(isp); else _speed(isp, ip); return (0); }
void HMC5883L_7_5Hz(HMC5883L* compass){ _speed(compass,3); }
void HMC5883L_3Hz(HMC5883L* compass){ _speed(compass,2); }
void HMC5883L_1_5Hz(HMC5883L* compass){ _speed(compass,1); }
void HMC5883L_75Hz(HMC5883L* compass){ _speed(compass,6); }
void HMC5883L_30Hz(HMC5883L* compass){ _speed(compass,5); }
void HMC5883L_15Hz(HMC5883L* compass){ _speed(compass,4); }