 // -------------------------
 // Generic Utility Functions
 // -------------------------
-
 void delayFixed(long ms)
 {
   if (ms < 16)

and variable spark frequency, specifically for purposes of flamethrowing.
*/

//Pin Definitions
#define ACTIVATION_PIN 2
#define IGNITION_PIN 3
#define EXTERNAL_LED_PIN 4
#define INTERNAL_LED_PIN 13
#define FREQUENCY_PIN A0

//Settings
int dwell = 2500;            //Ignition coil dwell in microseconds (2.5ms = 2500us)
long periodMax = 1000;       //Maximum period between ignitions, in milliseconds (min frequency)
long periodMin = 5;          //Minimum period between ignitions, in milliseconds (max frequency)
int periodCorrection = 0;    //Variance to period due to loop code execution time (milliseconds)
float linearity = 2.5;       //1.0 = linear, 0.5 = more resolution in the high end, 2.0 = more resolution in the low end (exponential)
bool debug = false;          //true = write to serial monitor, false = bypass
bool triggerHigh = true;     //true = HIGH to fire, false = LOW to fire

//Variables
long period = 0;

void setup() 
{
  pinMode(ACTIVATION_PIN, INPUT);

  delayFixed(period);
}

// -------------------------
//          Methods
// -------------------------
bool isActive() 
{
  return digitalRead(ACTIVATION_PIN) == LOW;
