Profile directory About Mobile apps
Log in Sign up
Jan 22, 2021, 04:17
Lup Yuen Lee 李立源 @lupyuen@qoto.org

#BL602 reading #I2C Register on BME280 ... Hope this works 🤔

https://github.com/lupyuen/bl_iot_sdk/blob/i2c/customer_app/sdk_app_i2c/sdk_app_i2c/demo.c#L234-L277

  • fa90834179baf030.png
1
Lup Yuen Lee 李立源 @lupyuen@qoto.org
Follow

#BL602 has an I2C queue of 4 bytes ... So we'll send/receive I2C data 4 bytes at a time with interrupts

https://github.com/lupyuen/bl_iot_sdk/blob/i2c/customer_app/sdk_app_i2c/sdk_app_i2c/demo.c#L238-L263

  • f8d04f3e47a25f50.png
Jan 22, 2021, 05:20 · · Tusky · 1 · 0 · 0
Jan 22, 2021, 08:20
Lup Yuen Lee 李立源 @lupyuen@qoto.org

Oops #BL602 needs to trigger an #I2C Receive Interrupt before we read the I2C FIFO Input ... So we should call the BL602 I2C Functions in two steps

https://github.com/lupyuen/bl_iot_sdk/blob/i2c/customer_app/sdk_app_i2c/sdk_app_i2c/demo.c#L271-L299

  • 143c1c5211b76eb4.png
0
Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.

Resources

  • Terms of service
  • Privacy policy

Developers

  • Documentation
  • API

What is Mastodon?

qoto.org

  • About
  • v3.5.19-qoto

More…

  • Source code
  • Mobile apps
v3.5.19-qoto · Privacy policy