Attachments are accessible only for community members.
Jul 11, 2017
04:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 11, 2017
04:30 AM
Hi
Could someone glance over my attached project. It is of I2C master taking data from BME280 environmental sensor and then transmitting the data out over BLE. I would like to view this data in Cysmart but I am unable to do so. Could someone have a look over my project please.
Regards
Solved! Go to Solution.
Labels
- Labels:
-
BLE
1 Solution
Jul 11, 2017
06:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 11, 2017
06:42 AM
In your i2c.h are two warnings which show up errors.
In BME_WriteReg() you have the line
I2C_1_I2CMasterWriteBuf(BME_ADDR,(uint8 *)Write_Buf,2,I2C_1_I2C_MODE_COMPLETE_XFER);
Take the term (uint8 *)Write_Buf
Write_Buf is an array of 32bit integers and your statement will transfer the first two bytes of the array. That does not match at all.
Same applies for the warning-flagged lines.
Bob
7 Replies