Error While writing Library for Gy521
-
Serial.println(goo.AcX); Serial.println(goo.AcY); Serial.println(goo.AcZ);
while using above code, I'm getting '0'. not updating,
-
@rafitc99 is it fixed ?,u found a solution?
-
@saheen_palayi Nop, while calling goo.AcX getting zero as output. not getting updated value.
-
@rafitc99 I dont think u can access those like that did you tried those lines after
goo.getAcData(); goo.getGyData();
-
@saheen_palayi yeah! that was the problem. Now it's worked. Thank you @saheen_palayi and @vishnumaiea
-
@rafitc99 What was the solution?
-
@salmanfaris forgot to call function
getAcData()
andgetGyData()
beforegoo.AcX
... -
ohh , Glad to know that it's working fine, Thanks to @vishnumaiea and @saheen_palayi .