Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hello,
I try to use I2C on Redbearlab BLE Nano (nrf51822). When I add I2C object to my code, rs232 stops working. Please see sample code below:
#include "mbed.h" DigitalOut myled(P0_19); Serial pc(P0_9, P0_11); //I2C connection(P0_8, P0_10); int main() { while(1) { myled = 1; wait(0.2); myled = 0; wait(0.2); pc.printf("Heartrate: %d\n", hrmCounter); } }If I2C is enabled there is no longer any output on rs232. LED keeps flashing. Is this a known bug? Or is there something wrong with this really simple code? I've also tried latest mbed source from git with the same result.
Regards, railwaycoder