2021-11-11 01:28 AM
I am trying to Control the brightness of WS2812b Neopixel with a simple Photoresistor using the Nucelo F042k6 Board. When the Light of room is high the WS2812b gets brighter and when it s dark it gets darker
In my project I am using a DMA and a Timer to set up my WS2812b LEDS.
I set my Ws2812b to timer 2 with a Circular DMA and my Photoresistor to ADC_IN1
When I try to add the Photoresistor the LEDS doesnt react to values of the ADC
in the file you can find the Code. I am using the STM32CubeMx for the timer , DMA and ADC settings and STM32workbench for the code.
How can I make the connection between the WS2812b and the Photoresistor?
How can I controll the brightness of WS2812b with my ADC Value
Thank you