Skip to content

Commit 921c1ab

Browse files
authored
RST fix
1 parent bdfed8c commit 921c1ab

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Arduino_MKRIoTCarrier.cpp

+7-3
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,19 @@
2121
#include <Arduino_MKRIoTCarrier.h>
2222

2323
MKRIoTCarrier::MKRIoTCarrier(){
24+
//Restart cleaner
25+
//display.fillScreen(ST77XX_BLACK);
26+
//leds.clear();
27+
//leds.show();
28+
2429
}
2530

2631
int MKRIoTCarrier::begin(){
2732
//Display
2833
display.init(240, 240); // Initialize ST7789 screen
29-
pinMode(TFT_BACKLIGHT, OUTPUT);
30-
digitalWrite(TFT_BACKLIGHT, HIGH); // Backlight on
34+
pinMode(3,INPUT_PULLUP); // RESET fix
3135

32-
//Default rotation to align it with the carrier
36+
//Default rotation to align it with the carrier
3337
display.setRotation(2);
3438
display.fillScreen(ST77XX_BLACK);
3539

0 commit comments

Comments
 (0)