From aa20730bca8432e466322c4650e8dd0822800b42 Mon Sep 17 00:00:00 2001 From: gijsio <67470426+gijsio@users.noreply.github.com> Date: Mon, 28 Dec 2020 12:48:46 +0100 Subject: [PATCH] added rgbled color return --- content/firmwareapi/pycom/pycom.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/firmwareapi/pycom/pycom.md b/content/firmwareapi/pycom/pycom.md index 92ed327..f295e83 100644 --- a/content/firmwareapi/pycom/pycom.md +++ b/content/firmwareapi/pycom/pycom.md @@ -25,9 +25,9 @@ pycom.rgbled(0xff00) # make the LED light up in green color Get or set the state (enabled or disabled) of the heartbeat LED. Accepts and returns boolean values. -### pycom.rgbled(color) +### pycom.rgbled([color]) -Set the colour of the RGB LED. The colour is specified as 24 bit value representing red, green and blue, in the following order `0xRRGGBB`. For instance, passing the value `0x00FF00` will light up the LED in a very bright green. +Get or set the colour of the RGB LED. The colour is specified as 24 bit value representing red, green and blue, in the following order `0xRRGGBB`. For instance, passing the value `0x00FF00` will light up the LED in a very bright green. If no color is provided, this will return the current color of the LED. ### pycom.nvs_set(key, value)