microsoft / devkit-sdk

Arduino library and package for the MXChip IoT DevKit
https://aka.ms/devkit
MIT License
69 stars 52 forks source link

attachInterrupt(USER_BUTTON_B,...) & new LSM6DSLSensor(*i2c, D4, D5) #895

Open ArthurMa1978 opened 6 years ago

ArthurMa1978 commented 6 years ago

From @Adamantinu on July 9, 2018 14:14

If you attach an Interrupt to the User_Button_B and add the LSM6DSLSensor for the gyroscope, the interrupt is not working anymore.

EDIT: Same Code works as expected when attaching the interrupt to USER_BUTTON_A instead

Copied from original issue: Microsoft/azure-iot-developer-kit#386

lirenhe commented 6 years ago

@Adamantinu, could you provide the detailed repro step and code for this issue? This would help us investigate the problem

flexray commented 5 years ago

I did ag_sensor = new LSM6DSLSensor(*ext_i2c, PB_13, PB_14); and Button A and B works. Seems like binding do D4/D5 overrides Button B interrupt

github-actions[bot] commented 4 years ago

This issue has no recent activities, please take a look and provide updates for it.