I want to drive LED using NRF_PWM0, but It is not working.
I want to increase brightness of LED but it is alyway on.
Please help me.
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
* Copyright 2019. Seonguk Jeong All rights reserved
* uAHRS Project
* Example : Pulse Width Modulation(PWM)
* Created at Dec. 11, 2019
* Author : Seonguk Jeong
*/
#include <nrf_drv_pwm.h>
#include <nrf_drv_timer.h>
#include <nrf_delay.h>
void Initialize();
void setDuty(int16_t duty);
int main(void){
// Initialize PWM
Initialize();
int16_t test = 0;
while(1){
if(test >= 32000){