Hi everyone,
I'm trying to implement a simple bluetooth beacon which broadcasts / advertises the number of button presses and the time in seconds after the last button press.
So far I managed to combine (using copy and paste, and fixing missing #include's) the ble_peripheral/ble_beacon and peripheral/pin_change_int examples to count the button presses and use advertisement messages to broadcast the counter.
I'm currently stuck at integrating the peripheral/timer example (to measure the time since the last button press): when I copy the code of the example into my existing approach, the LEDs were lit at all times. When I attached an oscilloscope I noticed that the LEDs were toggled in rapid succession (for the first integration I aim for 1s intervalls). As suggested in this post I switched the used timer to TIMER1 and later TIMER2 but to no avail (I think I have configured them properly in the sdk_config.h header).
I'm using the PCA10040 board, SDK v15.0.0, and SoftDevice S132 v6.0.
Are there any pointers about what goes wrong?
Best,
lhochstetter