-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wire.begin() affecting clock based functions #82
Comments
Thanks for your point, I will test this. |
I have test the sample code, but I don't meet the problem.It works fine!
|
Thanks for confirming that it can work. I went back and looked at the board I was selecting. I previously had selected "BLE Nano v1.5" so instead I tried RBL nRF51822 v1.5) and it works! What is the difference between the two boards and why should I select one over the other? |
So I dug a little deeper myself and I can see the difference between the two is PIN assignments. The RBL nRF51822 profile uses D14 and D15 by default If I had to guess, it looks like the SCL assignment is hijacking the clock from the general MCU functions. |
So your board is RBL nRF51288 V1.5. I use the following code to test:
I have used the D3/D2 for SCL/SDA, I still didn't meet the problem.It works fine! |
When I used Wire.begin in my setup() method, both delay(...) and millis() don't work correctly.
delay() blocks forever and millis() returns 0
If I comment out the Wire.begin() both those functions work again. Small sample code below ...
The text was updated successfully, but these errors were encountered: