Chris Tyrie Member Licensed User Longtime User May 9, 2019 #1 https://github.com/sparkfun/SparkFun_MAG3110_Breakout_Board_Arduino_Library
thetahsk Active Member Licensed User Longtime User May 9, 2019 #2 Chris Tyrie said: https://github.com/sparkfun/SparkFun_MAG3110_Breakout_Board_Arduino_Library Click to expand... You can use inline c/c++ code. See this Tutorial: https://www.b4x.com/android/forum/threads/inline-c-c.65714/ Search the forum for more inline c code examples how to handle variables Include the SparkFun_MAG3110 header file create an instance : MAG3110 mag = MAG3110() Initialize the Object: mag.initialize(); Call member functions e.g.: mag.readMag(&x, &y, &z);
Chris Tyrie said: https://github.com/sparkfun/SparkFun_MAG3110_Breakout_Board_Arduino_Library Click to expand... You can use inline c/c++ code. See this Tutorial: https://www.b4x.com/android/forum/threads/inline-c-c.65714/ Search the forum for more inline c code examples how to handle variables Include the SparkFun_MAG3110 header file create an instance : MAG3110 mag = MAG3110() Initialize the Object: mag.initialize(); Call member functions e.g.: mag.readMag(&x, &y, &z);
Chris Tyrie Member Licensed User Longtime User May 9, 2019 #3 thetahsk said: You can use inline c/c++ code. See this Tutorial: https://www.b4x.com/android/forum/threads/inline-c-c.65714/ Search the forum for more inline c code examples how to handle variables Click to expand... Thank you for your feedback. It would be easier to dump B4R and go with straight C.
thetahsk said: You can use inline c/c++ code. See this Tutorial: https://www.b4x.com/android/forum/threads/inline-c-c.65714/ Search the forum for more inline c code examples how to handle variables Click to expand... Thank you for your feedback. It would be easier to dump B4R and go with straight C.
thetahsk Active Member Licensed User Longtime User May 9, 2019 #4 Chris Tyrie said: Thank you for your feedback. It would be easier to dump B4R and go with straight C. Click to expand... Try to understand this example: https://www.b4x.com/android/forum/t...r-ds18b20-via-inline-c-c-again.76331/#content Last edited: May 9, 2019
Chris Tyrie said: Thank you for your feedback. It would be easier to dump B4R and go with straight C. Click to expand... Try to understand this example: https://www.b4x.com/android/forum/t...r-ds18b20-via-inline-c-c-again.76331/#content
derez Expert Licensed User Longtime User May 10, 2019 #5 If it works like the hmc5883 then you have the solution here https://www.b4x.com/android/forum/t...nts-mpu-6050-and-magnetometer-hmc5883l.65917/
If it works like the hmc5883 then you have the solution here https://www.b4x.com/android/forum/t...nts-mpu-6050-and-magnetometer-hmc5883l.65917/
Chris Tyrie Member Licensed User Longtime User May 10, 2019 #6 derez said: If it works like the hmc5883 then you have the solution here https://www.b4x.com/android/forum/t...nts-mpu-6050-and-magnetometer-hmc5883l.65917/ Click to expand... Thus leading to the rWire Master I create, clashing with other I2C masters created by libraries. And so I either need the library wrapped or I must manually communicate with all other I2C devices using my own rWire code. Please read... https://www.b4x.com/android/forum/t...ame-time-as-i2c-libraries.105579/#post-661718
derez said: If it works like the hmc5883 then you have the solution here https://www.b4x.com/android/forum/t...nts-mpu-6050-and-magnetometer-hmc5883l.65917/ Click to expand... Thus leading to the rWire Master I create, clashing with other I2C masters created by libraries. And so I either need the library wrapped or I must manually communicate with all other I2C devices using my own rWire code. Please read... https://www.b4x.com/android/forum/t...ame-time-as-i2c-libraries.105579/#post-661718