nrf-rs / nrf-hal

A Rust HAL for the nRF family of devices
Apache License 2.0
507 stars 140 forks source link

Arduino 33 BLE Sense - sensors on SCL1/SDA1 - is that TWIM1? #290

Closed nebelgrau77 closed 3 years ago

nebelgrau77 commented 3 years ago

This isn't really an issue but this seems to be the best place to ask/raise question:

I have successfully flashed Arduino 33 BLESense with Adafruit NRF52 bootloader. What I would really like to do is to use the on-board sensors, and here's the problem: according to the schematics https://content.arduino.cc/assets/NANO33BLE_V2.0_sch.pdf all the I2C sensors are connected to SCL1/SDA1. Would that be TWIM1?

Here's my working code with an external sensor, identical with the one on board, APDS9660: https://github.com/nebelgrau77/nano33blesense_apds9660_ext - it will not work if I create another instance of I2C with TWIM1 and the SCL/SDA pins on P0.15/P.014. Any ideas how this could be solved? Is TWIM1 the way to go or I'm missing something bigger?

nebelgrau77 commented 3 years ago

It seems like it might be necessary to make some other pins active (VDD_ENV on P0.22), so I'm closing this issue.