Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LED doesn't blink in Lesson 4 - Exercise 2 #10

Open
olalonde opened this issue Aug 13, 2024 · 1 comment
Open

LED doesn't blink in Lesson 4 - Exercise 2 #10

olalonde opened this issue Aug 13, 2024 · 1 comment

Comments

@olalonde
Copy link

https://github.com/NordicDeveloperAcademy/ncs-inter/tree/main/lesson4/inter_less4_exer2_solution

Tested with nrf52840dk. The buttons do activate the motor but the LEDs remain turned off.

@olalonde
Copy link
Author

olalonde commented Aug 13, 2024

It seems it should be (pin p0.13 and not p0.10):

/* STEP 1.4 - Configure which pins your custom pwm0 instance should use */
&pinctrl {
    pwm0_custom: pwm0_custom {
        group1 {
            psels = <NRF_PSEL(PWM_OUT0, 0, 13)>;
            nordic,invert;
        };
    };

    pwm0_csleep: pwm0_csleep {
        group1 {
            psels = <NRF_PSEL(PWM_OUT0, 0, 13)>;
            low-power-enable;
        };
    };
};

But the solution/devacademy exercise steps use:

&pinctrl {
    pwm0_custom: pwm0_custom {
        group1 {
            psels = <NRF_PSEL(PWM_OUT0, 0, 10)>;
            nordic,invert;
        };
    };

    pwm0_csleep: pwm0_csleep {
        group1 {
            psels = <NRF_PSEL(PWM_OUT0, 0, 10)>;
            low-power-enable;
        };
    };
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant