Code will no longer compile

Hi, so in the past this code compiled and I am currently using it. Now my system has upgraded to the newest Arduino and it will not compile. It says " 'A1' not declared in this scope, did you mean 'A0'? " Please help?

[code]

// last change 1/25/2020
// added graph recorder
// change charge pulse to 10 degrees from 30
// 8/17 added code for pulse out width
// 7/14/2017 added correct math and setting for position of pickup
// 10 10/28/2016 adds charging pulse with Timer 2
// lowest RPM = 615 with charge pulse to keep OCR2A <= 255
// CDI Tester Pulse Generator Serial Output Arduino Code
// replaced on 7/22/18 mod on 4/18/2019 changed to go simple transformer control of pos / neg trigger
// update 7/14/2017 added correct math and setting for position of pickup
// revision 10 10/28/2016 adds charging pulse with Timer 2
// lowest RPM = 615 with charge pulse to keep OCR2A <= 255
// CDI Tester Pulse Generator Serial Output Arduino Code
// 8/17 added code for pulse out width

#include <Wire.h>
#include <hd44780.h>
#include <hd44780ioClass/hd44780_I2Cexp.h> // include i/o class header
hd44780_I2Cexp lcd; // declare lcd object: auto locate & config display for hd44780 chip

int pot1 = A1; // select the input pin for the pot for rpm
int pot2 = A2; // select the input pin for the pot for pickup location in degrees
int potValue = 0; // variable to store the value coming from the sensor
int pickupValue = 0; // position of pickup in degrees
int timerTopValue = 12500; // changed from timerTopValue = 0
int outputPin = 9; // select the pin for the output for trigger pulse, changed from 8
int output2Pin = 5; 
int chargePin = 7; // select the pin for the output for charge pulses

volatile boolean trigger = false;
volatile unsigned long delayPeriod;
unsigned long copy_delayPeriod;
volatile unsigned long delayPeriodStart;
float delayDegrees; // changed from int to float for decimal place display
int RPM;
int pickup;
int pulseWidth;
unsigned int numberMeasures;
volatile boolean interruptFlag;
unsigned long analogReadInterval = 500; // read pots and map
unsigned long lastAnalogRead;
const byte setChargePulseSwitch = 6;
boolean chargePulse = false ;  // default dc powered mode
volatile byte timeSliceCount = 0; // TDC 0 degrees

void setup() {
  Serial.begin(115200);
  delay(500);


  lcd.begin(20, 4); // initialize the lcd for 20 chars 4 lines, turn on backlight
  lcd.setCursor(1, 0); // lcd display setup of unchanging headings
  lcd.print("RPM:"); // print fixed characters
  lcd.setCursor(12, 0);
  lcd.print("Deg"); 
  lcd.setCursor(1, 1);
  lcd.print("Pos:");
  lcd.setCursor(1, 2);
  lcd.print("Us Delay:");
  lcd.setCursor(1, 3);
  lcd.print("Deg Advance:");

  pinMode(outputPin, OUTPUT); // declare the outputPin as an OUTPUT
  pinMode(output2Pin, OUTPUT);
  pinMode(chargePin, OUTPUT); // declare the chargePin as an OUTPUT
  pinMode(setChargePulseSwitch, INPUT_PULLUP);

  if (digitalRead(setChargePulseSwitch) == LOW)
    chargePulse = true; // AC CDI

 // Timer1 default set up .5ms trigger pulse every 50 ms
  TCCR1A = (1<< WGM11);//Fast PWM to ICR1
  TCCR1B = (1 << WGM13) | (1 << WGM12);
  //TCCR1B = (1 << WGM12); // CTC mode to OCR1A
  TCCR1B = (1 << WGM13) | (1 << WGM12);//CTC mode to ICR1
  //OCR1A = timerTopValue;
  ICR1 = timerTopValue;
  TIMSK1 |= (1 << OCIE1A); // interrupt enable compareA
  TIMSK1 |= (1 << OCIE1B); // interrupt enable compareB
  TIMSK1 |= (1<< TOIE1);//overflow interrupt at top
  OCR1B = 250; // sets trigger pulse width, 500 = 2Ms, 250 = 1Ms, 125 = .5Ms, set to 1250 for 5013 *********************************************
  OCR1A = OCR1B +500;//add default
  TCCR1B |= (1 << CS11) | (1 << CS10); // prescaler 64 4us/tick

// Timer2 default setup charge pulse 36 periods 10 degrees each; only 5 get turned on
// charge pulse timing interval = Timer1 trigger period/12 = timerTopValue/96
  TCCR2A = 0;
  TCCR2B = 0;
  TCCR2A = 1 << WGM20; // lsb of mode 7 pwm to OCR2A
  TCCR2B = 1 << WGM22; // msb of mode 7 pwm to OCR2A;
  //OCR2A = timerTopValue / 96; // 96 = 12*4*2 (#periods, prescaler difference, up/down timer mode )
  OCR2A = timerTopValue / 288; //  = 36*4*2 (#periods, prescaler difference, up/down timer mode )
  TIMSK2 = 0;
  TIMSK2 = 1 << TOIE2; // enable overflow interrupt
// actually start timer in ISR(TIMER1_COMPA_vect
// to prevent out of sync charge pulse, no prescaler set here

  attachInterrupt(digitalPinToInterrupt(3), delayPeriodTiming, FALLING);

}

void loop()
{
  unsigned long analogReadInterval = 500; // read pots and map
  if (millis() - lastAnalogRead >= analogReadInterval)
  {
    lastAnalogRead += analogReadInterval;
    potValue = analogRead(pot1); // rpm
    pickupValue = analogRead(pot2); // pickup position

    if (digitalRead(setChargePulseSwitch) == LOW)
    {
    chargePulse = true; // AC CDI
    }
    else
    {
    chargePulse = false;
    }
    
// Timer2 OCR2A requires max value 255 => 615 lowest RPM
// if (chargePulse)
    
      RPM = map(potValue, 0, 1023, 615, 10000);
      pickup = map(pickupValue, 0, 1023, 10, 85); // position so advance will read based on delay, 57 for yamaha 350 2 pu, 74 for 1 pu, 72 for tw200, 25 for 5013
      pulseWidth = (60000000/RPM)/360; // time for 1° in uS
    

    timerTopValue = 15000000UL / RPM;
    OCR1B = pulseWidth;
    OCR1A = OCR1B + pulseWidth;

    lcd.setCursor(6, 0);
    lcd.print("     "); // print blank spaces to clear old data
    lcd.setCursor(6, 0);
    lcd.print(RPM);  // print rpm

    lcd.setCursor(16, 0);
    lcd.print("  ");
    lcd.setCursor(16, 0);
    lcd.print(pulseWidth, 1); // print us per degree
    
    lcd.setCursor(6, 1);
    lcd.print("   ");
    lcd.setCursor(6, 1);
    lcd.print(pickup); // print pickup coil position

    lcd.setCursor(11, 2);
    lcd.print("       ");
    lcd.setCursor(11, 2);
    lcd.print(copy_delayPeriod);
   
    lcd.setCursor(14, 3);
    lcd.print("      ");
    lcd.setCursor(14, 3);
    lcd.print(delayDegrees, 1);   // delayDegrees, 1);
  }

  // -------------------------- Export to USB in CSV format
numberMeasures = numberMeasures+1;
if (numberMeasures > 5 && delayDegrees != 0.00); // Delete the first 2 values that have been eroded after the display cut
 { 
Serial.print(RPM); Serial.print(", "); Serial.println(delayDegrees);
delay(200);
 }
 
  if (trigger == true && interruptFlag == true )
  {
    trigger = false;
    interruptFlag = false;
    noInterrupts();
    copy_delayPeriod = delayPeriod;
    interrupts();

    delayDegrees = pickup - (360.0 * (copy_delayPeriod) / (timerTopValue * 4.0)); // for decimal place in deg display.
    }
}

//ISR(TIMER1_COMPA_vect) {
ISR(TIMER1_OVF_vect){ 
  //OCR1A = (timerTopValue); // value to set delay between pulses to trigger cdi
  ICR1 = (timerTopValue);
  digitalWrite(chargePin, LOW); // guarantee off charge pin at trigger
  digitalWrite(outputPin, HIGH); // turn on pin  trigger

  {
    delayPeriodStart = micros(); // start looking for response as pulse rises
    trigger = true;
  }
// start Timer 2 for charge pulses
  if (chargePulse)
  {
    timeSliceCount = 0;
    TCNT2 = 0;
    //OCR2A = timerTopValue/96; // set 12 periods
    OCR2A = timerTopValue/288;//set 36 periods
    TCCR2B |=  1 << CS22 | 1 << CS21; //prescaleer 256 16us/tick
  }
}

ISR(TIMER1_COMPB_vect) {
  digitalWrite(outputPin, LOW);
  //could add short delayMiocroseconds here for gap
  digitalWrite(output2Pin,HIGH);

  //{
  //  delayPeriodStart = micros(); // start looking for response as pulse falls
  //  trigger = true;
  //}
}

ISR(TIMER1_COMPA_vect) {
  digitalWrite(output2Pin, LOW);
}

void delayPeriodTiming()
{
  delayPeriod = micros() - delayPeriodStart;
  interruptFlag = true;
}

ISR(TIMER2_OVF_vect)
// 5 pulses of 10 degrees starting at 60 degrees
// ON at 60,120,180,240,300 = slice count 6,12,18,24,30
// OFF at 70,130,190,250,310
{
  if (timeSliceCount != 0 && timeSliceCount % 6 == 0)
  {
    digitalWrite (chargePin, HIGH);
  }
  else
  {
    digitalWrite(chargePin, LOW);
  }
  timeSliceCount++;

  if (timeSliceCount == 36)
  {
    timeSliceCount = 0;
// stop Timer2 by clearing prescaler bits
    TCCR2B &= ~1<< CS22;
    TCCR2B &= ~1<< CS21;
  }
}
[/code]

Please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.

I remove the errant [code] stuff and then I tried to compile your code and it compiled with one warning:

... \AppData\Local\Temp\arduino_modified_sketch_842490\sketch_dec22a.ino:161:51: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
if (numberMeasures > 5 && delayDegrees != 0.00); // Delete the first 2 values that have been eroded after the display cut

I removed the semicolon [;] from the if statement and the warning went away. It then compiled with no warnings or errors.

Hi, how do I see what you did? Why did it compile 2 years ago and not now?
Thanks, Tom

// [code]  ***************************************** comment this

// last change 1/25/2020
// added graph recorder
// change charge pulse to 10 degrees from 30
// 8/17 added code for pulse out width
// 7/14/2017 added correct math and setting for position of pickup
// 10 10/28/2016 adds charging pulse with Timer 2
// lowest RPM = 615 with charge pulse to keep OCR2A <= 255
// CDI Tester Pulse Generator Serial Output Arduino Code
// replaced on 7/22/18 mod on 4/18/2019 changed to go simple transformer control of pos / neg trigger
// update 7/14/2017 added correct math and setting for position of pickup
// revision 10 10/28/2016 adds charging pulse with Timer 2
// lowest RPM = 615 with charge pulse to keep OCR2A <= 255
// CDI Tester Pulse Generator Serial Output Arduino Code
// 8/17 added code for pulse out width

#include <Wire.h>
#include <hd44780.h>
#include <hd44780ioClass/hd44780_I2Cexp.h> // include i/o class header
hd44780_I2Cexp lcd; // declare lcd object: auto locate & config display for hd44780 chip

int pot1 = A1; // select the input pin for the pot for rpm
int pot2 = A2; // select the input pin for the pot for pickup location in degrees
int potValue = 0; // variable to store the value coming from the sensor
int pickupValue = 0; // position of pickup in degrees
int timerTopValue = 12500; // changed from timerTopValue = 0
int outputPin = 9; // select the pin for the output for trigger pulse, changed from 8
int output2Pin = 5;
int chargePin = 7; // select the pin for the output for charge pulses

volatile boolean trigger = false;
volatile unsigned long delayPeriod;
unsigned long copy_delayPeriod;
volatile unsigned long delayPeriodStart;
float delayDegrees; // changed from int to float for decimal place display
int RPM;
int pickup;
int pulseWidth;
unsigned int numberMeasures;
volatile boolean interruptFlag;
unsigned long analogReadInterval = 500; // read pots and map
unsigned long lastAnalogRead;
const byte setChargePulseSwitch = 6;
boolean chargePulse = false ;  // default dc powered mode
volatile byte timeSliceCount = 0; // TDC 0 degrees

void setup()
{
   Serial.begin(115200);
   delay(500);


   lcd.begin(20, 4); // initialize the lcd for 20 chars 4 lines, turn on backlight
   lcd.setCursor(1, 0); // lcd display setup of unchanging headings
   lcd.print("RPM:"); // print fixed characters
   lcd.setCursor(12, 0);
   lcd.print("Deg");
   lcd.setCursor(1, 1);
   lcd.print("Pos:");
   lcd.setCursor(1, 2);
   lcd.print("Us Delay:");
   lcd.setCursor(1, 3);
   lcd.print("Deg Advance:");

   pinMode(outputPin, OUTPUT); // declare the outputPin as an OUTPUT
   pinMode(output2Pin, OUTPUT);
   pinMode(chargePin, OUTPUT); // declare the chargePin as an OUTPUT
   pinMode(setChargePulseSwitch, INPUT_PULLUP);

   if (digitalRead(setChargePulseSwitch) == LOW)
      chargePulse = true; // AC CDI

   // Timer1 default set up .5ms trigger pulse every 50 ms
   TCCR1A = (1 << WGM11); //Fast PWM to ICR1
   TCCR1B = (1 << WGM13) | (1 << WGM12);
   //TCCR1B = (1 << WGM12); // CTC mode to OCR1A
   TCCR1B = (1 << WGM13) | (1 << WGM12);//CTC mode to ICR1
   //OCR1A = timerTopValue;
   ICR1 = timerTopValue;
   TIMSK1 |= (1 << OCIE1A); // interrupt enable compareA
   TIMSK1 |= (1 << OCIE1B); // interrupt enable compareB
   TIMSK1 |= (1 << TOIE1); //overflow interrupt at top
   OCR1B = 250; // sets trigger pulse width, 500 = 2Ms, 250 = 1Ms, 125 = .5Ms, set to 1250 for 5013 *********************************************
   OCR1A = OCR1B + 500; //add default
   TCCR1B |= (1 << CS11) | (1 << CS10); // prescaler 64 4us/tick

   // Timer2 default setup charge pulse 36 periods 10 degrees each; only 5 get turned on
   // charge pulse timing interval = Timer1 trigger period/12 = timerTopValue/96
   TCCR2A = 0;
   TCCR2B = 0;
   TCCR2A = 1 << WGM20; // lsb of mode 7 pwm to OCR2A
   TCCR2B = 1 << WGM22; // msb of mode 7 pwm to OCR2A;
   //OCR2A = timerTopValue / 96; // 96 = 12*4*2 (#periods, prescaler difference, up/down timer mode )
   OCR2A = timerTopValue / 288; //  = 36*4*2 (#periods, prescaler difference, up/down timer mode )
   TIMSK2 = 0;
   TIMSK2 = 1 << TOIE2; // enable overflow interrupt
   // actually start timer in ISR(TIMER1_COMPA_vect
   // to prevent out of sync charge pulse, no prescaler set here

   attachInterrupt(digitalPinToInterrupt(3), delayPeriodTiming, FALLING);

}

void loop()
{
   unsigned long analogReadInterval = 500; // read pots and map
   if (millis() - lastAnalogRead >= analogReadInterval)
   {
      lastAnalogRead += analogReadInterval;
      potValue = analogRead(pot1); // rpm
      pickupValue = analogRead(pot2); // pickup position

      if (digitalRead(setChargePulseSwitch) == LOW)
      {
         chargePulse = true; // AC CDI
      }
      else
      {
         chargePulse = false;
      }

      // Timer2 OCR2A requires max value 255 => 615 lowest RPM
      // if (chargePulse)

      RPM = map(potValue, 0, 1023, 615, 10000);
      pickup = map(pickupValue, 0, 1023, 10, 85); // position so advance will read based on delay, 57 for yamaha 350 2 pu, 74 for 1 pu, 72 for tw200, 25 for 5013
      pulseWidth = (60000000 / RPM) / 360; // time for 1° in uS


      timerTopValue = 15000000UL / RPM;
      OCR1B = pulseWidth;
      OCR1A = OCR1B + pulseWidth;

      lcd.setCursor(6, 0);
      lcd.print("     "); // print blank spaces to clear old data
      lcd.setCursor(6, 0);
      lcd.print(RPM);  // print rpm

      lcd.setCursor(16, 0);
      lcd.print("  ");
      lcd.setCursor(16, 0);
      lcd.print(pulseWidth, 1); // print us per degree

      lcd.setCursor(6, 1);
      lcd.print("   ");
      lcd.setCursor(6, 1);
      lcd.print(pickup); // print pickup coil position

      lcd.setCursor(11, 2);
      lcd.print("       ");
      lcd.setCursor(11, 2);
      lcd.print(copy_delayPeriod);

      lcd.setCursor(14, 3);
      lcd.print("      ");
      lcd.setCursor(14, 3);
      lcd.print(delayDegrees, 1);   // delayDegrees, 1);
   }

   // -------------------------- Export to USB in CSV format
   numberMeasures = numberMeasures + 1;
   if (numberMeasures > 5 && delayDegrees != 0.00)//; **************************** comment the semicolon
   // Delete the first 2 values that have been eroded after the display cut
   {
      Serial.print(RPM); Serial.print(", "); Serial.println(delayDegrees);
      delay(200);
   }

   if (trigger == true && interruptFlag == true )
   {
      trigger = false;
      interruptFlag = false;
      noInterrupts();
      copy_delayPeriod = delayPeriod;
      interrupts();

      delayDegrees = pickup - (360.0 * (copy_delayPeriod) / (timerTopValue * 4.0)); // for decimal place in deg display.
   }
}

//ISR(TIMER1_COMPA_vect) {
ISR(TIMER1_OVF_vect)
{
   //OCR1A = (timerTopValue); // value to set delay between pulses to trigger cdi
   ICR1 = (timerTopValue);
   digitalWrite(chargePin, LOW); // guarantee off charge pin at trigger
   digitalWrite(outputPin, HIGH); // turn on pin  trigger

   {
      delayPeriodStart = micros(); // start looking for response as pulse rises
      trigger = true;
   }
   // start Timer 2 for charge pulses
   if (chargePulse)
   {
      timeSliceCount = 0;
      TCNT2 = 0;
      //OCR2A = timerTopValue/96; // set 12 periods
      OCR2A = timerTopValue / 288; //set 36 periods
      TCCR2B |=  1 << CS22 | 1 << CS21; //prescaleer 256 16us/tick
   }
}

ISR(TIMER1_COMPB_vect)
{
   digitalWrite(outputPin, LOW);
   //could add short delayMiocroseconds here for gap
   digitalWrite(output2Pin, HIGH);

   //{
   //  delayPeriodStart = micros(); // start looking for response as pulse falls
   //  trigger = true;
   //}
}

ISR(TIMER1_COMPA_vect)
{
   digitalWrite(output2Pin, LOW);
}

void delayPeriodTiming()
{
   delayPeriod = micros() - delayPeriodStart;
   interruptFlag = true;
}

ISR(TIMER2_OVF_vect)
// 5 pulses of 10 degrees starting at 60 degrees
// ON at 60,120,180,240,300 = slice count 6,12,18,24,30
// OFF at 70,130,190,250,310
{
   if (timeSliceCount != 0 && timeSliceCount % 6 == 0)
   {
      digitalWrite (chargePin, HIGH);
   }
   else
   {
      digitalWrite(chargePin, LOW);
   }
   timeSliceCount++;

   if (timeSliceCount == 36)
   {
      timeSliceCount = 0;
      // stop Timer2 by clearing prescaler bits
      TCCR2B &= ~1 << CS22;
      TCCR2B &= ~1 << CS21;
   }
}
// [ / code] ***************************************** comment this

comment the and at the top and bottom of the code. Look for "********* comment this"

Line 163 comment semicolon

Arduino: 1.8.13 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"





















C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Tom Bauer\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Tom Bauer\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Arduino\libraries -fqbn=esp8266:esp8266:generic:xtal=80,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=40,FlashMode=dout,eesz=1M64,led=2,sdk=nonosdk_190703,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -vid-pid=04F9_02AD -ide-version=10813 -build-path C:\Users\TOMBAU~1\AppData\Local\Temp\arduino_build_811720 -warnings=none -build-cache C:\Users\TOMBAU~1\AppData\Local\Temp\arduino_cache_428002 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mkspiffs-3.0.4-gcc10.3-1757bed.path=C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mklittlefs.path=C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\tools\mklittlefs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mklittlefs-3.0.4-gcc10.3-1757bed.path=C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\tools\mklittlefs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.xtensa-lx106-elf-gcc-3.0.4-gcc10.3-1757bed.path=C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.python3.path=C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1 -verbose C:\Arduino\cdi-tester_version_15B\cdi-tester_version_15B.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Tom Bauer\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Tom Bauer\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Arduino\libraries -fqbn=esp8266:esp8266:generic:xtal=80,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=40,FlashMode=dout,eesz=1M64,led=2,sdk=nonosdk_190703,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -vid-pid=04F9_02AD -ide-version=10813 -build-path C:\Users\TOMBAU~1\AppData\Local\Temp\arduino_build_811720 -warnings=none -build-cache C:\Users\TOMBAU~1\AppData\Local\Temp\arduino_cache_428002 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mkspiffs-3.0.4-gcc10.3-1757bed.path=C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mklittlefs.path=C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\tools\mklittlefs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mklittlefs-3.0.4-gcc10.3-1757bed.path=C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\tools\mklittlefs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.xtensa-lx106-elf-gcc-3.0.4-gcc10.3-1757bed.path=C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.python3.path=C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1 -verbose C:\Arduino\cdi-tester_version_15B\cdi-tester_version_15B.ino

Using board 'generic' from platform in folder: C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2

Using core 'esp8266' from platform in folder: C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2

Detecting libraries used...

"C:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\TOMBAU~1\\AppData\\Local\\Temp\\arduino_build_811720/core" -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "C:\\Users\\TOMBAU~1\\AppData\\Local\\Temp\\arduino_build_811720\\sketch\\cdi-tester_version_15B.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Alternatives for Wire.h: [Wire@1.0]

ResolveLibrary(Wire.h)

  -> candidates: [Wire@1.0]

"C:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\TOMBAU~1\\AppData\\Local\\Temp\\arduino_build_811720/core" -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\Wire" "C:\\Users\\TOMBAU~1\\AppData\\Local\\Temp\\arduino_build_811720\\sketch\\cdi-tester_version_15B.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Alternatives for hd44780.h: [hd44780-master@1.1.0 hd44780-1.1.0@1.1.0 hd44780@1.0.2]

ResolveLibrary(hd44780.h)

  -> candidates: [hd44780-master@1.1.0 hd44780-1.1.0@1.1.0 hd44780@1.0.2]

"C:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\TOMBAU~1\\AppData\\Local\\Temp\\arduino_build_811720/core" -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\Wire" "-IC:\\Arduino\\libraries\\hd44780" "C:\\Users\\TOMBAU~1\\AppData\\Local\\Temp\\arduino_build_811720\\sketch\\cdi-tester_version_15B.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

"C:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\TOMBAU~1\\AppData\\Local\\Temp\\arduino_build_811720/core" -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\Wire" "-IC:\\Arduino\\libraries\\hd44780" "C:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\Wire\\Wire.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

"C:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\TOMBAU~1\\AppData\\Local\\Temp\\arduino_build_811720/core" -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\Wire" "-IC:\\Arduino\\libraries\\hd44780" "C:\\Arduino\\libraries\\hd44780\\hd44780.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Generating function prototypes...

"C:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\TOMBAU~1\\AppData\\Local\\Temp\\arduino_build_811720/core" -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\Wire" "-IC:\\Arduino\\libraries\\hd44780" "C:\\Users\\TOMBAU~1\\AppData\\Local\\Temp\\arduino_build_811720\\sketch\\cdi-tester_version_15B.ino.cpp" -o "C:\\Users\\TOMBAU~1\\AppData\\Local\\Temp\\arduino_build_811720\\preproc\\ctags_target_for_gcc_minus_e.cpp" -DARDUINO_LIB_DISCOVERY_PHASE

"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\TOMBAU~1\\AppData\\Local\\Temp\\arduino_build_811720\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\python3\\3.7.2-post1/python3" -I "C:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/signing.py" --mode header --publickey "C:\\Arduino\\cdi-tester_version_15B/public.key" --out "C:\\Users\\TOMBAU~1\\AppData\\Local\\Temp\\arduino_build_811720/core/Updater_Signing.h"

"C:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\TOMBAU~1\\AppData\\Local\\Temp\\arduino_build_811720/core" -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-IC:\\Users\\Tom Bauer\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\Wire" "-IC:\\Arduino\\libraries\\hd44780" "C:\\Users\\TOMBAU~1\\AppData\\Local\\Temp\\arduino_build_811720\\sketch\\cdi-tester_version_15B.ino.cpp" -o "C:\\Users\\TOMBAU~1\\AppData\\Local\\Temp\\arduino_build_811720\\sketch\\cdi-tester_version_15B.ino.cpp.o"

cdi-tester_version_15B:22:12: error: 'A1' was not declared in this scope; did you mean 'A0'?

   22 | int pot1 = A1; // select the input pin for the pot for rpm

      |            ^~

      |            A0

cdi-tester_version_15B:23:12: error: 'A2' was not declared in this scope; did you mean 'A0'?

   23 | int pot2 = A2; // select the input pin for the pot for pickup location in degrees

      |            ^~

      |            A0

cdi-tester_version_15B:180:5: error: expected constructor, destructor, or type conversion before '(' token

  180 | ISR(TIMER1_OVF_vect){

      |     ^

cdi-tester_version_15B:201:5: error: expected constructor, destructor, or type conversion before '(' token

  201 | ISR(TIMER1_COMPB_vect) {

      |     ^

cdi-tester_version_15B:212:5: error: expected constructor, destructor, or type conversion before '(' token

  212 | ISR(TIMER1_COMPA_vect) {

      |     ^

cdi-tester_version_15B:222:5: error: expected constructor, destructor, or type conversion before '(' token

  222 | ISR(TIMER2_OVF_vect)

      |     ^

C:\Arduino\cdi-tester_version_15B\cdi-tester_version_15B.ino: In function 'void setup()':

cdi-tester_version_15B:73:3: error: 'TCCR1A' was not declared in this scope

   73 |   TCCR1A = (1<< WGM11);//Fast PWM to ICR1

      |   ^~~~~~

cdi-tester_version_15B:73:17: error: 'WGM11' was not declared in this scope

   73 |   TCCR1A = (1<< WGM11);//Fast PWM to ICR1

      |                 ^~~~~

cdi-tester_version_15B:74:3: error: 'TCCR1B' was not declared in this scope

   74 |   TCCR1B = (1 << WGM13) | (1 << WGM12);

      |   ^~~~~~

cdi-tester_version_15B:74:18: error: 'WGM13' was not declared in this scope

   74 |   TCCR1B = (1 << WGM13) | (1 << WGM12);

      |                  ^~~~~

cdi-tester_version_15B:74:33: error: 'WGM12' was not declared in this scope

   74 |   TCCR1B = (1 << WGM13) | (1 << WGM12);

      |                                 ^~~~~

cdi-tester_version_15B:78:3: error: 'ICR1' was not declared in this scope

   78 |   ICR1 = timerTopValue;

      |   ^~~~

cdi-tester_version_15B:79:3: error: 'TIMSK1' was not declared in this scope

   79 |   TIMSK1 |= (1 << OCIE1A); // interrupt enable compareA

      |   ^~~~~~

cdi-tester_version_15B:79:19: error: 'OCIE1A' was not declared in this scope

   79 |   TIMSK1 |= (1 << OCIE1A); // interrupt enable compareA

      |                   ^~~~~~

cdi-tester_version_15B:80:19: error: 'OCIE1B' was not declared in this scope

   80 |   TIMSK1 |= (1 << OCIE1B); // interrupt enable compareB

      |                   ^~~~~~

cdi-tester_version_15B:81:18: error: 'TOIE1' was not declared in this scope; did you mean 'TEIE1'?

   81 |   TIMSK1 |= (1<< TOIE1);//overflow interrupt at top

      |                  ^~~~~

      |                  TEIE1

cdi-tester_version_15B:82:3: error: 'OCR1B' was not declared in this scope

   82 |   OCR1B = 250; // sets trigger pulse width, 500 = 2Ms, 250 = 1Ms, 125 = .5Ms, set to 1250 for 5013 *********************************************

      |   ^~~~~

cdi-tester_version_15B:83:3: error: 'OCR1A' was not declared in this scope

   83 |   OCR1A = OCR1B +500;//add default

      |   ^~~~~

cdi-tester_version_15B:84:19: error: 'CS11' was not declared in this scope

   84 |   TCCR1B |= (1 << CS11) | (1 << CS10); // prescaler 64 4us/tick

      |                   ^~~~

cdi-tester_version_15B:84:33: error: 'CS10' was not declared in this scope

   84 |   TCCR1B |= (1 << CS11) | (1 << CS10); // prescaler 64 4us/tick

      |                                 ^~~~

cdi-tester_version_15B:88:3: error: 'TCCR2A' was not declared in this scope

   88 |   TCCR2A = 0;

      |   ^~~~~~

cdi-tester_version_15B:89:3: error: 'TCCR2B' was not declared in this scope

   89 |   TCCR2B = 0;

      |   ^~~~~~

cdi-tester_version_15B:90:17: error: 'WGM20' was not declared in this scope

   90 |   TCCR2A = 1 << WGM20; // lsb of mode 7 pwm to OCR2A

      |                 ^~~~~

cdi-tester_version_15B:91:17: error: 'WGM22' was not declared in this scope

   91 |   TCCR2B = 1 << WGM22; // msb of mode 7 pwm to OCR2A;

      |                 ^~~~~

cdi-tester_version_15B:93:3: error: 'OCR2A' was not declared in this scope

   93 |   OCR2A = timerTopValue / 288; //  = 36*4*2 (#periods, prescaler difference, up/down timer mode )

      |   ^~~~~

cdi-tester_version_15B:94:3: error: 'TIMSK2' was not declared in this scope

   94 |   TIMSK2 = 0;

      |   ^~~~~~

cdi-tester_version_15B:95:17: error: 'TOIE2' was not declared in this scope

   95 |   TIMSK2 = 1 << TOIE2; // enable overflow interrupt

      |                 ^~~~~

C:\Arduino\cdi-tester_version_15B\cdi-tester_version_15B.ino: In function 'void loop()':

cdi-tester_version_15B:130:5: error: 'OCR1B' was not declared in this scope

  130 |     OCR1B = pulseWidth;

      |     ^~~~~

cdi-tester_version_15B:131:5: error: 'OCR1A' was not declared in this scope

  131 |     OCR1A = OCR1B + pulseWidth;

      |     ^~~~~

C:\Arduino\cdi-tester_version_15B\cdi-tester_version_15B.ino: At global scope:

cdi-tester_version_15B:180:4: error: expected constructor, destructor, or type conversion before '(' token

  180 | ISR(TIMER1_OVF_vect){

      |    ^

cdi-tester_version_15B:201:4: error: expected constructor, destructor, or type conversion before '(' token

  201 | ISR(TIMER1_COMPB_vect) {

      |    ^

cdi-tester_version_15B:212:4: error: expected constructor, destructor, or type conversion before '(' token

  212 | ISR(TIMER1_COMPA_vect) {

      |    ^

cdi-tester_version_15B:222:4: error: expected constructor, destructor, or type conversion before '(' token

  222 | ISR(TIMER2_OVF_vect)

      |    ^

Multiple libraries were found for "hd44780.h"

 Used: C:\Arduino\libraries\hd44780

 Not used: C:\Arduino\libraries\hd44780-master

 Not used: C:\Arduino\libraries\hd44780-1.1.0

Using library Wire at version 1.0 in folder: C:\Users\Tom Bauer\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\Wire 

Using library hd44780 at version 1.0.2 in folder: C:\Arduino\libraries\hd44780 

exit status 1

'A1' was not declared in this scope; did you mean 'A0'?


Where did you get that code? What board was it running on 2 years ago?

That code is not written for the ESP8266. There are references to register names that the ESP does not have.

cdi-tester_version_15B:22:12: error: 'A1' was not declared in this scope; did you mean 'A0'?

The ESP8266 has only one ADC pin, that is A0. There are no A1 and A2 on and ESP8266.

TCCR1A = (1<< WGM11);//Fast PWM to ICR1
  TCCR1B = (1 << WGM13) | (1 << WGM12);
  //TCCR1B = (1 << WGM12); // CTC mode to OCR1A
  TCCR1B = (1 << WGM13) | (1 << WGM12);//CTC mode to ICR1
  //OCR1A = timerTopValue;
  ICR1 = timerTopValue;
  TIMSK1 |= (1 << OCIE1A); // interrupt enable compareA
  TIMSK1 |= (1 << OCIE1B); // interrupt enable compareB
  TIMSK1 |= (1<< TOIE1);//overflow interrupt at top
  OCR1B = 250; // sets trigger pulse width, 500 = 2Ms, 250 = 1Ms, 125 = .5Ms, set to 1250 for 5013 *********************************************
  OCR1A = OCR1B +500;//add default
  TCCR1B |= (1 << CS11) | (1 << CS10); // prescaler 64 4us/tick

// Timer2 default setup charge pulse 36 periods 10 degrees each; only 5 get turned on
// charge pulse timing interval = Timer1 trigger period/12 = timerTopValue/96
  TCCR2A = 0;
  TCCR2B = 0;
  TCCR2A = 1 << WGM20; // lsb of mode 7 pwm to OCR2A
  TCCR2B = 1 << WGM22; // msb of mode 7 pwm to OCR2A;
  //OCR2A = timerTopValue / 96; // 96 = 12*4*2 (#periods, prescaler difference, up/down timer mode )
  OCR2A = timerTopValue / 288; //  = 36*4*2 (#periods, prescaler difference, up/down timer mode )
  TIMSK2 = 0;
  TIMSK2 = 1 << TOIE2; // enable overflow interrupt
// actually start timer in ISR(TIMER1_COMPA_vect
// to prevent out of sync charge pulse, no prescaler set here

  attachInterrupt(digitalPinToInterrupt(3), delayPeriodTiming, FALLING);

That appears to be Arduino Uno code which is not a ESP8266.

Why did it run 2987.6 years ago but not now? One or more libraires has been updated and some of the old ways have not been moved forward.

OK, solved. I had not realized it was set to ESP8266 and not Uno. Thanks guys!

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.