sandeepmistry / arduino-nRF5

Arduino Core for Nordic Semiconductor nRF5 based boards
Other
905 stars 279 forks source link

I2C and BLEPeripheral doesn't work #370

Closed kungfupizza closed 5 years ago

kungfupizza commented 5 years ago

Hi, I am using this core for nRF52832 and the BLEPeripheral and I2C doesn't work on it, the program gets stuck on blePeripheral.begin() or Wire.begin()

I am using S132 SoftDevice 6.1.0.

Any solutions?

kungfupizza commented 5 years ago

EDIT: Also tried S132 2.0.1 as said in readme, but still failed.

dlabun commented 5 years ago

I2C should work fine, which board are you using?

As for BLE issues, please post over on the BLEPeripheral issue tracker as that's a whole separate project and I have zero knowledge of it's inner workings.

kungfupizza commented 5 years ago

I made a custom board with I2C pull ups of 4.7K on pin 15 and 16, which I changed in the variant.h file.

kungfupizza commented 5 years ago

Sorry, my mistake. The I2C sensor wasn't getting proper 3.3V and doing some tweaks solved it.