 #define AS3935_CS  B_CS
 #define AS3935_INT B_INT
 
-SparkFun_AS3935 lightning;
+//SparkFun_AS3935 lightning;
 
 int AS3935_intVal = 0;
 int AS3935_noise = 2; // Value between 1-7 

  digitalWrite(AS3935_CS, HIGH);
  pinMode(AS3935_INT, INPUT);

  if( !lightning.beginSPI(AS3935_CS, 2000000) ){ 
    Serial.println ("debug: Lightning Detector did not start up, freezing!"); 
    while(1); 
  }
  else
    Serial.println("debug: Lightning Detector Ready!");

  lightning.setIndoorOutdoor(AS3935_OUTDOOR); 
}

double TMP116_ReadTempSensor(void){

/***************************************************************************
 * 
 * Copyright (c) 2020 Robert Nelson <robert.nelson@digikey.com>
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * 
 * Slot: C: Weather Click  
 * 
 ***************************************************************************/

#include <SPI.h>
#include <Wire.h>

/* Adafruit BME280 Library: 2.0.2 */
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>

#include "flip_click_defs.h"
//#include "SparkFun_AS3935.h"

Adafruit_BME280 bme; // I2C

unsigned long delayTime;

#define AS3935_INDOOR 0x12 
#define AS3935_OUTDOOR 0xE
