raiden00pl opened a new pull request, #22150:
URL: https://github.com/apache/nuttx/pull/22150

     ## Summary
     
     Add support for the STMicroelectronics LED1642GW 16-channel constant
     current LED driver with 12/16-bit PWM brightness control, and for the
     X-NUCLEO-LED16A1 expansion board on nucleo-c071rb.
     
     * `drivers/leds: Add LED1642GW 16-channel LED driver.`
       PWM lower-half driver: `led1642gw_initialize()` returns a
       `pwm_lowerhalf_s` with one PWM channel for each output, the duty is the
       brightness. The instance can be used with `pwm_register()` or
       `rgbled_register()`. Current gain, current range and PWM resolution
       come from the board configuration. Includes documentation.
   
       The serial interface is bit-banged with board callbacks (CLK, SDI, LE).
       The device selects the command by the number of CLK rising edges with
       LE high at the end of the word, so LE changes in the middle of a word
       and a standard SPI transfer cannot be used.
       
     * `boards/arm/common/stm32: Add LED1642GW support.`
       `board_led1642gw_initialize()` initializes one device on the given
       GPIOs, starts the PWCLK timer and registers the RGB LEDs connected to
       the outputs as `/dev/rgbledN`. 
       
     * `boards/nucleo-c071rb: Add X-NUCLEO-LED16A1 support.`
       Pin definitions, bring-up and the `led16a1` configuration.
     
     ## Impact
       
     New driver, new common STM32 board code and a new nucleo-c071rb
     configuration.
       
     ## Testing
     
     Tested on nucleo-c071rb with the X-NUCLEO-LED16A1 expansion board and
     the `led16a1` configuration: 
     
         nsh> ls /dev
         /dev:
          console
          null
          pwm2 
          rgbled0
          rgbled1
          rgbled2
          rgbled3
          rgbled4
          ttyS0
          zero
         nsh> echo "#FF0000" > /dev/rgbled0
         nsh> echo "#00FF00" > /dev/rgbled1
         nsh> echo "#0000FF" > /dev/rgbled2
         nsh> echo "#101010" > /dev/rgbled3
         nsh> echo "#000000" > /dev/rgbled4
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

  • [PR] drivers/leds: Add LED164... raiden00pl (via GitHub) via commits

Reply via email to