Custom build questions

Hi All,

Two build questions: (when say configure - I mean configure for build)

  1. How do you configure WLED to receive JSON message via the serial port and echo all JSON message received via WIFI to serial port.

  2. How do you configure WLED so that by default 5050 LEDS (PWM) are supported.

Thanks

MikeZ

  1. by adding custom code for the latter, no need to do anything for receive
  2. plenty of digital and PWM LEDs are supported by default. if you want to make PWM RGB default LED type add -D DEFAULT_LED_TYPE=TYPE_ANALOG_3CH -D DATA_PINS=1,2,3

change pins as required

Hi blazoncek,

Thanks for your reply. I am complete beginner at this point and I am just working out the questions to ask. With respect to your first answer, where would the custom code be called and how/where is the serial port specified.

Thanks

MikeZ

You just use Serial.print(…) for the output.
Other serial code WLED uses is in wled_serial.cpp.

There is no logic (yet) to output JSON to serial. If I understood correctly @Aircoookie may add such code at some point.

Hi blazoncek,

thanks.

MikeZ