Software
As said before: PWM is controlled by bluetooth. Used softare for this is Nordic nRF UART android application. This works otherwise quite simply: connect to device then start sending commands
command interface: c<channel_number><PWM>
example: c160 this will set Channel 1 to 60% PWM
Generally how code works: nothing happens on main infinite loop other than idle handler. Bluetooth uart handler activates when data is received from Nordic nRF UART android application and PWM is modified according the data. Following pages follows more on NRF52 microcontrollers source code. Used IDE is Segger Embedded Studio Segger Embedded Studio
Whole sourcecode can be found here source code.