Closed Raunak-Singh-Inventor closed 3 years ago
Here is the registers page in the datasheet for the heartrate sensor:
I2C is labeled as 0x4000 5800
. How should I use it in my C program?
Fixed in https://github.com/m5stack/Core2-for-AWS-IoT-EduKit/commit/332ac2bd5afc3837327af973733deaee10491523 and added APIs to read/write to I2C device.
I am trying to connect a external grove sensor (https://wiki.seeedstudio.com/Grove-Finger-clip_Heart_Rate_Sensor_with_shell/) to the Port A (red port) on the AWS IoT EduKit.
I couldn't find a preprocessor macro for Port A (there are preprocesor macros for Port B and Port C, but no preprocesor macro for Port A), so I initially tried getting the data from the sensor from GPIO_NUM_32/GPIO_NUM_33 through the
Core2ForAWS_Port_Read
func in the Core2 for AWS BSP (https://edukit.workshop.aws/en/api-reference/expports.html) through this code:But, it didn't work.
Next, I tried this code, which uses the i2c library in the core2foraws, but this also doesn't work:
Is it possible to connect an external grove sensor to Port A? Please help.