Nepo4Arduino: Interrupt desired
Lexa2000 opened this issue · 0 comments
Unfortunately it is not yet possible to use the Arduino interrupt pins in NEPO, unless you adapt the source code manually.
Is this perhaps already planned?
An idea for the implementation:
So that the interrupt pins must also be used appropriately in NEPO and are not accidentally used for polling, I would define a separate category for interrupts for the Arduino interrupts. This would allow other interrupt types of the Arduino controller to be made available later.
ROBOT CONFIGURATION:
In the interrupt category, there is a separate block for each interrupt (corresponding to the board selection for Nano, Uno, Mega or Nano33).
The PIN cannot be selected, it is fixed.
However, the corresponding IRQ function name must be specified.
In addition, the selection option for a return value of the IRQ function (analogous to the two function block types) should be available.
PROGRAM:
There is now an Interrupt category under the Expert blocks. Only the IRQ functions that have been configured and given an IRQ function name can be found there. All other non-configured interrupts are not available (analogous to the functions).
The help should point out that the IRQ functions should be kept as short as possible.
Perhaps the interrupts can be implemented in one of the next releases.