Skip to content

Commit 5b7126f

Browse files
committed
Update README.md
1 parent 3e2eca3 commit 5b7126f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ We are using a custom object, named `LedRGB`. Next, we need to declare a new obj
1919
### Functions in the library
2020

2121
- `setColor(redValue, greenValue, blueValue);` sets the values from 0 to 255 for each of the three colors.
22+
- `defaultColor(colorName);` chooses among different color Strings, e.g. `"white"` or `"yellow"`. If the color you write is not supported, the LED will be set to black.
2223
- `add(addRed, addGreen, addBlue);` adds the specified value to the current one in the LED, up to 255.
2324
- `substract(subRed, subGreen, subBlue);` substracts the specified value, all the way down to 0.
2425
- `off();` sets every value to 0.
@@ -41,6 +42,7 @@ El objeto que utilizaremos será de tipo `LedRGB`. A continuación deberemos def
4142
### Funciones de la librería
4243

4344
- `ponerColor(valorRojo, valorVerde, valorAzul);` asigna los valores de 0 a 255 para cada uno de los tres colores.
45+
- `colorPredefinido(nombreDelColor);` acepta algunos Strings de colores, como `"blanco"` or `"amarillo"`. Si el color que introduces no está en nuestra lista, el LED se pondrá negro.
4446
- `sumar(sumarRojo, sumarVerde, sumarAzul);` suma el valor dado al valor actual del LED (hasta llegar a 255).
4547
- `restar(quitarRojo, quitarVerde, quitarAzul);` resta desde el valor al que está puesto el LED (hasta llegar a cero).
4648
- `apagar();` pone todos los valores a cero.

0 commit comments

Comments
 (0)