Skip to content

Commit 02a9ff3

Browse files
authored
Merge pull request #52 from arduino-libraries/marqdevx/external-libs-fix
Fix Display constructor
2 parents 562fa3a + bdbe4ea commit 02a9ff3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ leds.begin()
220220

221221
Sets the color of the index’s LED
222222
```cpp
223-
leds.setPixelColor(index, green, red, blue)
223+
leds.setPixelColor(index, red, green, blue)
224224
```
225225

226226
In case you have custom colors you can use this method too
@@ -250,7 +250,7 @@ leds.fill(color, firstLedToCount, count)
250250

251251
Save your custom color:
252252
```cpp
253-
uint32_t myColor = carrier.leds.Color(green, red, blue)
253+
uint32_t myColor = carrier.leds.Color(red, green, blue)
254254
```
255255

256256
### Pressure sensor - LPS22HB (Barometric)

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Arduino_MKRIoTCarrier
2-
version=1.0.2
2+
version=1.0.4
33
author=Riccardo Rizzo, Jose García, Pablo Marquínez
44
maintainer=Arduino <[email protected]>
55
sentence=Controlling the IoT MKR Carrier

src/Arduino_MKRIoTCarrier.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class MKRIoTCarrier{
122122
MKRIoTCarrierQtouch Button4 __attribute__((deprecated)) = MKRIoTCarrierQtouch(TOUCH4);
123123

124124
//Display
125-
Adafruit_ST7789 display = Adafruit_ST7789(&SPI, TFT_CS, TFT_DC, -1);
125+
Adafruit_ST7789 display = Adafruit_ST7789(TFT_CS, TFT_DC, -1);
126126

127127
//RGB LEDs
128128
Adafruit_DotStar leds = Adafruit_DotStar(NUMPIXELS, DATAPIN, CLOCKPIN, DOTSTAR_BGR);

0 commit comments

Comments
 (0)