When to use DK Buttons and LEDs versus CAF Led Module?

Hello Reader,

I noticed two almost similar modules "DK buttons and LEDs" library and the "CAF LED & Button" library (or module).

What is the difference between DK buttons and LEDs module and the CAF LED & Button modules

Is there conceptually or design wise any specific case to use either as preferred one?

Best regards,
     nRF5xFanBoy

Parents Reply Children
  • Thanks,

    I agree "no correct answer."

    It's about the intended design in mind when these modules where created.
    Unfortunately the intended design of both modules is not written clearly nor completely in the module documentation.

    I think this is something to improve when it come to wring documentation.
    This would definitely help the reader in analyze & designing her/his application.
    There is a always a brainstorming & choice picking moment selecting the candidate libraries in some overview and picking the best solution for the problem.

    So yes the CAF is even-driven  
    So the DK buttons and leds are more simple (read: not event-driven)
    but what other differences are there .... 
    - which library is faster (e.g. latency?)
    - which library is drains the batter? 
    - which uses interrupt?
    - which is thread safe?
    - which is lock free?

    Just some design question the documentation does not answer ....

    Yeah for now I stick with the CAF implementation in my aplication and build a few new CAF libraries myself.

    best regards,
         nRF5xFanBoy

Related