File tree 1 file changed +14
-10
lines changed
1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -33,29 +33,33 @@ int MKRIoTCarrier::begin(){
33
33
display.init (240 , 240 ); // Initialize ST7789 screen
34
34
pinMode (3 ,INPUT_PULLUP); // RESET fix
35
35
36
- // Default rotation to align it with the carrier
36
+ // Default rotation to align it with the carrier
37
37
display.setRotation (2 );
38
- display.fillScreen (ST77XX_BLACK);
38
+ display.fillScreen (ST77XX_BLACK);
39
39
40
- if (CARRIER_CASE){
41
- TOUCH.setSensorsSensitivity (4u );
42
- }else {
43
- TOUCH.setSensorsSensitivity (100u );
40
+
41
+ if (!Buttons.customSens ){
42
+
43
+ if (CARRIER_CASE){
44
+ TOUCH.setSensorsSensitivity (4u );
45
+ }else {
46
+ TOUCH.setSensorsSensitivity (100u );
47
+ }
48
+ Buttons.begin (); // init buttons
44
49
}
45
- Buttons.begin (); // init buttons
46
50
47
51
// init LEDs
48
52
leds.begin ();
49
- leds.clear ();
50
- leds.show ();
53
+ leds.clear ();
54
+ leds.show ();
51
55
52
56
// PMIC init
53
57
PMIC.begin ();
54
58
PMIC.enableBoostMode ();
55
59
56
60
// Sensors
57
61
uint8_t sensorsOK = !Light.begin () << 0 | !Pressure.begin () << 1 | !IMUmodule.begin () << 2 | !Env.begin () << 3 ;
58
- // Serial.println(sensorsOK , BIN);
62
+ // Serial.println(sensorsOK , BIN);
59
63
60
64
// If some of the sensors are not connected
61
65
if (sensorsOK > 0 ){
You can’t perform that action at this time.
0 commit comments