 
 // ******************* INTERRUPT EVENTS ******************* 
 void triggerCount() {
-  tickCount = tickCount + 1;
+  tickCount = tickCount + 1.0;
   millisSinceLastTick = millis();
 }
 

  
*/

#include <LiquidCrystal.h>
#include <Wire.h>
#include <Adafruit_MMA8451.h>
#include <Adafruit_Sensor.h>

// Scooter constants
const float WHEEL_RADIUS = 6.0; // in cm
const float WHEEL_CIRCUMFERENCE = 2 * WHEEL_RADIUS * PI;
double kph = 0.0;
double mph = 0.0;

// Hall effect sensor read pin, make it an interrupt pin so we catch all revolutions
const byte HALL_SENSOR = 2;
boolean isHallSensorTriggered = false;
int tickCount = 0;
int currentMillis = 0;
int millisSinceLastTick = 0;

// 16x2 LCD display pins
const byte LCD_BACKLIGHT = 5;


void setup() {
  Serial.begin(115200);
  
  Serial.print("Set for wheel circumference: ");
  Serial.print(WHEEL_CIRCUMFERENCE);
  Serial.println("cm");
  
  pinMode(HALL_SENSOR, INPUT_PULLUP);
  attachInterrupt(0,triggerCount, FALLING);
