This repository was archived by the owner on Apr 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Reset Cruizcore Sensor #29
Copy link
Copy link
Open
Description
I need to find a solution to Reset the sensor using a I2C Block. Exist a solution for Arduino and to reading I2C registers but I am not sure if exist a solution to write.
I2C Registers:
XGL_PORT = 1; // Physical port in the EV3 block can be 1 to 4
XGL_ADDR = 0x02; // XG1300L device I2C address, this cannot be changed
XGL_RESET_REG = 0x60; // XG1300L reset register
message = {XGL_ADDR, XGL_RESET};
// I2Cwrite(port, return_len, buffer)
I2Cwrite(XGL_PORT, 0, message);
Arduino I2C Block:
http://www.dexterindustries.com/howto/connecting-ev3-arduino/
https://engmuhannadalkhudari.wordpress.com/2016/02/11/nxtev3-arduino-i2c-ultimate-guide/
EV3 Read I2C Block:
http://www.mindsensors.com/blog/how-to/check-basic-information-of-your-i2c-sensors
LeJOS Driver:
http://www.lejos.org/ev3/docs/lejos/hardware/sensor/CruizcoreGyro.html
https://sourceforge.net/p/lejos/ev3/code/ci/master/tree/ev3classes/src/lejos/hardware/sensor/CruizcoreGyro.java
NXT I2C Blocks:
http://www.teamhassenplug.org/NXT/NXTGAdditions.html
Reactions are currently unavailable