Nordic Semiconductor's internet of things project.

Conflict with InterruptIn

22 Aug 2014

I'm building a puck-based program and would like to update a GATT characteristic when one of the built in nRF51822 buttons is pressed. But if I instantiate a InterruptIn as so:

InterruptIn button(BUTTON1);

I get a compiler error

Error: Symbol GPIOTE_IRQHandler multiply defined (by gpio_irq_api.o and app_gpiote.c.NRF51822.o).

What's the best way to do this with a puck project? I'm currently thinking of resorting to a Ticker, which seems like it can't be the best way....

22 Aug 2014

You need to log in to post a reply