diff --git a/docs/readme.md b/docs/readme.md index 394aab6..6485f9f 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -220,7 +220,7 @@ leds.begin() Sets the color of the index’s LED ```cpp -leds.setPixelColor(index, green, red, blue) +leds.setPixelColor(index, red, green, blue) ``` In case you have custom colors you can use this method too @@ -250,7 +250,7 @@ leds.fill(color, firstLedToCount, count) Save your custom color: ```cpp -uint32_t myColor = carrier.leds.Color(green, red, blue) +uint32_t myColor = carrier.leds.Color(red, green, blue) ``` ### Pressure sensor - LPS22HB (Barometric) diff --git a/library.properties b/library.properties index c492301..9d3957b 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Arduino_MKRIoTCarrier -version=1.0.2 +version=1.0.4 author=Riccardo Rizzo, Jose García, Pablo Marquínez maintainer=Arduino sentence=Controlling the IoT MKR Carrier diff --git a/src/Arduino_MKRIoTCarrier.h b/src/Arduino_MKRIoTCarrier.h index 142a86b..5ed343d 100644 --- a/src/Arduino_MKRIoTCarrier.h +++ b/src/Arduino_MKRIoTCarrier.h @@ -122,7 +122,7 @@ class MKRIoTCarrier{ MKRIoTCarrierQtouch Button4 __attribute__((deprecated)) = MKRIoTCarrierQtouch(TOUCH4); //Display - Adafruit_ST7789 display = Adafruit_ST7789(&SPI, TFT_CS, TFT_DC, -1); + Adafruit_ST7789 display = Adafruit_ST7789(TFT_CS, TFT_DC, -1); //RGB LEDs Adafruit_DotStar leds = Adafruit_DotStar(NUMPIXELS, DATAPIN, CLOCKPIN, DOTSTAR_BGR);