Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By beic
#95507 Hi there,

As the title already mentions, my question is, could be the Built-In LED Brightness controlled on D1 mini board?
If yes, how?

Thank you for the answers and suggestions,

Kind regards,
Viktor
Last edited by beic on Mon Nov 07, 2022 11:44 am, edited 1 time in total.
User avatar
By QuickFix
#95509 Half the brightness:
Code: Select allvoid setup() {
  pinMode(LED_BUILTIN, OUTPUT); // <==== LED_BUILTIN should be set automatically to GPIO2 when the correct board is selected
  analogWrite(LED_BUILTIN, 127); // <==== change the second value [0...255] to set the brightness
}