 Button btnRight = Button(80,40,GRAY1,BLACK,GRAY2); // Memory used: (storage/ram: 3,624/63)  6,996/291
 Button btnHazard = Button(80,40,GRAY1,BLACK,GRAY2); // Memory used: (storage/ram: 3,624/63)  6,996/291
 
+Button btnPlus = Button(40,40,GRAY1,BLACK,GRAY2);
+Button btnMinus = Button(40,40,GRAY1,BLACK,GRAY2);
+
+
+#define MAX_RATE 500
+#define MIN_RATE 100
+
 // Global variables
-const int leftPin = 22;
-const int rightPin = 24;
+const int leftPin = 3;
+const int rightPin = 2;
 bool leftActive = false;
 bool rightActive = false;
 bool hazardActive = false;

  Serial.begin(9600);
  pinMode(leftPin,OUTPUT);
  pinMode(rightPin,OUTPUT);
  
  canvas.init(TFT_LANDSCAPE);


    btnHazard.setEventHandler(&btnHazardEventHandler);
    btnHazard.init();

    btnPlus.setText("+");
    btnPlus.setEventHandler(&btnPlusEventHandler);
    btnPlus.init();

    btnMinus.setText("-");
    btnMinus.setEventHandler(&btnMinusEventHandler);
    btnMinus.init();

  // Add widgets to canvas
  // (Use layout template for coordinates)
