Skip to content

Latest commit

 

History

History
85 lines (57 loc) · 1.51 KB

README.rst

File metadata and controls

85 lines (57 loc) · 1.51 KB

LED

The LED sample demonstrates how to control LEDs with the use of npmx drivers.

The sample supports the following development kits:

.. table-from-sample-yaml::

The sample also requires an nPM1300 EK.

This sample uses the LED driver to blink PMIC LEDs according to the sequence defined in the main function.

  1. Connect the TWI interface between the chosen DK and the nPM1300 EK as in the following table:

    nPM1300 EK connections.

    nPM1300 EK pins

    nRF5340 DK pins

    nRF52840 DK pins

    GPIO0

    P1.10

    P1.10

    SDA

    P1.02

    P0.26

    SCL

    P1.03

    P0.27

    VOUT2 & GND

    External supply (P21)

    External supply (P21)

  2. Make the following connections on the chosen DK:

    • Set the SW9 nRF power source switch to VDD.
    • Set the SW10 VEXT → nRF switch to ON.
  3. Make the following connections on the nPM1300 EK:

|config|

|test_sample|

  1. |connect_kit|
  2. |connect_terminal|

As a result, you should see LEDs blinking on the board.

This sample uses drivers from npmx.