Hello,
I've got a nrf52840 DK and Adafruit nrf52840 Express (less complicated then DK) i'm trying to run a PWM example from datasheet (46 PWM — Pulse width modulation page 556-557). So the code
im uploading this code with an Arduino IDE and Adafruit Arduino Support Setup (it compiles, uploads and everything seems to be okay). But i cant get any PWM. There are 2 LEDs (Adafruit nrf52840 Express), 1 is on pin P1.15 wich i am tryng to use as PWM indicator.
So I have a few questions:
PWM_CHx_DUTY is a duty cycle of a PWM and why are there 4 duty cycles?
first_pin (second pin) is just a number of pin? for example, ih LED is connected to P1.15, should i just define first_pin = 15? Because it doesnt seems to work.
Wasky