• As mentioned before, only 2 pins can be watched by setWatch with interrupts

    can you verify this? Maybe you have 4 watches already running, and you are hitting a limit of 6. I have seen this limit in the past, on the Rock watch, with fanoush's firmware I could not enable a watch for the second button, with jefmer's it was ok, I think the bangle2 firmware has the same limit.

    Maybe run this on the console to check how many you have running.
    global["\xFF"].watches

  • I just tested setWatch with 3 pins (D32, D24 and D22 (found this pin additionally)) and confirmed only the first 2 pins with setWatch work. I don't know how many GPIOTE handlers are available in nRF, but it seems only two channels are available for users.

  • but it seems only two channels are available for users.

    I am not sure this is an nRF restriction, this is why I am posting, so that Gordon and Fanoush will correct me :)

    In any case, please run this to verify how many watches are running when you get the mesage that no more watches are available. Maybe some app is using a watch etc.
    global["\xFF"].watches

About

Avatar for JeonLab @JeonLab started