Closed mbdme26 closed 2 years ago
Good day @Fabien-Chouteau,
I have already made all the changes you requested. Thank you for your help!
Regards, Mario
I'm sorry for the delay @Fabien-Chouteau , Style issues should be fixed. If there's anything else I need to do, don't hesitate to tell me.
Regards, Mario
Thank you @mbdme26 :+1:
Hello,
I'm Mario Vicente García and i'm doing a project with the University of Cantabria, Spain.
Carrying out tests to try to send data through the I2C bus to control the motors of the maqueen robot (https://tienda.bricogeek.com/microbit/1271-robot-maqueen-para-microbit.html) using your library and the Microbit V1.3x, we realized that the initialization of the GPIO pins (SCA and SCL) is done incorrectly.
Trying to do a succesful master_transmit to the maqueen address (0x20), the function returned us a 0 (ERROR). Doing an I2C bus probe to see all available addresses on the bus, we realized that only the accelerometer address was available (0x1D), but the compass and maqueen motors addresses were not available.
According to the next manual, the relevant configuration for the pins is the GPIO DRIVE:
https://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.pdf (p.145, table 258)
So, applying the configuration on the SCL and SDA pins and doing again the probe of the I2C bus. We managed to see all the bus addresses correctly and successfully perform a master_transmit to the Maqueen motors.
Regards, Mario