wokwi / wokwi-features

Wokwi Feature requests & Bug Reports
https://wokwi.com
72 stars 17 forks source link

Analog API pin_dac_write output cannot drive RGB led #482

Open ancebfer opened 1 year ago

ancebfer commented 1 year ago

Describe the bug After adding a RGB led (common cathode) to custom-chip-analog example, the RGB led never lights for any voltage output.

To Reproduce Modified custom-chip-analog example: https://wokwi.com/projects/330112801381024338

Expected behavior RGB led light intensity should change proportional to voltage as in rgb-slides example: https://wokwi.com/projects/306455554559050306

Environment (please complete the following information):

ancebfer commented 1 year ago

Right modified custom-chip-analog-rgb example link: https://wokwi.com/projects/350784647934771795

urish commented 1 year ago

Yeah, unfortunately, LEDs (all of them, RGB included) do not really support analog inputs at the moment. A workaround is to use another custom chip which would do analog to PWM conversion.

ikostan commented 2 months ago

Hi @urish, Is this why RGB led doesn't work in my WOKWI project ? I tested same code on real device (PiPico W) and it runs just fine...